aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-25 13:41:17 +0800
committerGitHub <noreply@github.com>2022-08-25 13:41:17 +0800
commit170617c7a2183f9d5df84bfc89317be44ec9ac2e (patch)
tree82c16936e0dc10509e2e7b1ab799511e44ace410 /src/nvim/eval/funcs.c
parente4e0e8ce6f282ad891d3e9b7cd66961d23e7cba3 (diff)
parent6584f3a2b69b901900b9f267d62e06efbc15fec1 (diff)
downloadrneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.tar.gz
rneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.tar.bz2
rneovim-170617c7a2183f9d5df84bfc89317be44ec9ac2e.zip
Merge pull request #19939 from zeertzjq/vim-8.2.4289
vim-patch: compiler warnings
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
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);