diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-25 13:00:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-25 13:02:01 +0800 |
commit | 7656cd527bc22c9899f98d6a08a2b98de51d6f68 (patch) | |
tree | 7d08567b43849c39372f1cde66ba7cf0ef376509 /src | |
parent | 88738bd28fe078441d44337873e8f156cb22af29 (diff) | |
download | rneovim-7656cd527bc22c9899f98d6a08a2b98de51d6f68.tar.gz rneovim-7656cd527bc22c9899f98d6a08a2b98de51d6f68.tar.bz2 rneovim-7656cd527bc22c9899f98d6a08a2b98de51d6f68.zip |
vim-patch:8.2.1960: warning for uninitialized variable
Problem: Warning for uninitialized variable.
Solution: Initialize the variable.
https://github.com/vim/vim/commit/0fd797eacd569a0680a86452c18713eacf6608fe
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval/funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index 988300f6f2..fc926cf5a9 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -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); |