Skip to content

Commit 2fc83fc

Browse files
committed
patch 7.4.1292
Problem: Some compilers complain about uninitialzed variable, even though all possible cases are handled. (Dominique Pelle) Solution: Add a default initialization.
1 parent b92abad commit 2fc83fc

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/eval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10611,7 +10611,7 @@ f_diff_hlID(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
1061110611
static void
1061210612
f_empty(typval_T *argvars, typval_T *rettv)
1061310613
{
10614-
int n;
10614+
int n = FALSE;
1061510615

1061610616
switch (argvars[0].v_type)
1061710617
{
@@ -19935,7 +19935,7 @@ f_trunc(typval_T *argvars, typval_T *rettv)
1993519935
static void
1993619936
f_type(typval_T *argvars, typval_T *rettv)
1993719937
{
19938-
int n;
19938+
int n = -1;
1993919939

1994019940
switch (argvars[0].v_type)
1994119941
{
@@ -24952,7 +24952,7 @@ write_viminfo_varlist(FILE *fp)
2495224952
hashitem_T *hi;
2495324953
dictitem_T *this_var;
2495424954
int todo;
24955-
char *s;
24955+
char *s = "";
2495624956
char_u *p;
2495724957
char_u *tofree;
2495824958
char_u numbuf[NUMBUFLEN];

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ static char *(features[]) =
747747

748748
static int included_patches[] =
749749
{ /* Add new patch number below this line */
750+
/**/
751+
1292,
750752
/**/
751753
1291,
752754
/**/

0 commit comments

Comments
 (0)