1
0
forked from aniani/vim

patch 8.0.0204: compiler warns for uninitialized variable

Problem:    Compiler warns for uninitialized variable. (Tony Mechelynck)
Solution:   When skipping set "id" to -1.
This commit is contained in:
Bram Moolenaar 2017-01-17 19:48:53 +01:00
parent 6e78e27b8a
commit eb46f8fa14
2 changed files with 5 additions and 1 deletions

View File

@ -6049,7 +6049,9 @@ get_id_list(
}
else if (name[1] == '@')
{
if (!skip)
if (skip)
id = -1;
else
id = syn_check_cluster(name + 2, (int)(end - p - 1));
}
else

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
204,
/**/
203,
/**/