vim-patch:8.2.1960: warning for uninitialized variable

Problem:    Warning for uninitialized variable.
Solution:   Initialize the variable.
0fd797eacd
This commit is contained in:
zeertzjq
2022-08-25 13:00:07 +08:00
parent 88738bd28f
commit 7656cd527b

View File

@@ -5714,7 +5714,7 @@ static void f_rand(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
// When no argument is given use the global seed list.
if (!initialized) {
// Initialize the global seed list.
uint32_t x;
uint32_t x = 0;
init_srand(&x);
gx = splitmix32(&x);