Mercurial > vim
comparison src/evalfunc.c @ 22825:3996539f38b4 v8.2.1960
patch 8.2.1960: warning for uninitialized variable
Commit: https://github.com/vim/vim/commit/0fd797eacd569a0680a86452c18713eacf6608fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 5 20:46:32 2020 +0100
patch 8.2.1960: warning for uninitialized variable
Problem: Warning for uninitialized variable.
Solution: Initialize the variable.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 05 Nov 2020 21:00:04 +0100 |
parents | a7082e865ffd |
children | f2fbbb72ff28 |
comparison
equal
deleted
inserted
replaced
22824:8dad79c661d1 | 22825:3996539f38b4 |
---|---|
6871 { | 6871 { |
6872 list_T *l = NULL; | 6872 list_T *l = NULL; |
6873 static UINT32_T gx, gy, gz, gw; | 6873 static UINT32_T gx, gy, gz, gw; |
6874 static int initialized = FALSE; | 6874 static int initialized = FALSE; |
6875 listitem_T *lx, *ly, *lz, *lw; | 6875 listitem_T *lx, *ly, *lz, *lw; |
6876 UINT32_T x, y, z, w, t, result; | 6876 UINT32_T x = 0, y, z, w, t, result; |
6877 | 6877 |
6878 if (argvars[0].v_type == VAR_UNKNOWN) | 6878 if (argvars[0].v_type == VAR_UNKNOWN) |
6879 { | 6879 { |
6880 // When no argument is given use the global seed list. | 6880 // When no argument is given use the global seed list. |
6881 if (initialized == FALSE) | 6881 if (initialized == FALSE) |