mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
vim-patch:8.2.1960: warning for uninitialized variable
Problem: Warning for uninitialized variable.
Solution: Initialize the variable.
0fd797eacd
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user