]> granicus.if.org Git - vim/commitdiff
patch 8.0.0204: compiler warns for uninitialized variable v8.0.0204
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Jan 2017 18:48:53 +0000 (19:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Jan 2017 18:48:53 +0000 (19:48 +0100)
Problem:    Compiler warns for uninitialized variable. (Tony Mechelynck)
Solution:   When skipping set "id" to -1.

src/syntax.c
src/version.c

index 68f01c13a127831107e1669ee2343a68d0626118..e466de8985d43598f8296e50a36abc7bdc1910dc 100644 (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
index 263e4caa18557e32705cc685b1ca7814350b4a4b..a99c17e7bd3d6cc8d4c6b2ad5cefa64139e24135 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    204,
 /**/
     203,
 /**/