]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0194: gcc complains about uninitialized var v9.1.0194
authorChristian Brabandt <cb@256bit.org>
Thu, 21 Mar 2024 19:12:59 +0000 (20:12 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 21 Mar 2024 19:12:59 +0000 (20:12 +0100)
Problem:  gcc complains about uninitialized var
          (Tony Mechelynck)
Solution: initialize to NULL

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/insexpand.c
src/version.c

index c080d60cd9a7ccd3ca6650e5ef91312003a3542c..9b5e5de64c8ad65a0a3a50c2760c56245c68f9c8 100644 (file)
@@ -3095,7 +3095,7 @@ get_complete_info(list_T *what_list, dict_T *retdict)
 
     if (ret == OK && (what_flag & CI_WHAT_ITEMS || what_flag & CI_WHAT_SELECTED))
     {
-       list_T      *li;
+       list_T      *li = NULL;
        dict_T      *di;
        compl_T     *match;
        int         selected_idx = -1;
index 8fa2f694d534648b42959b576622a1a7fdafcac6..8a801686f93d12572b27f1b015222d1befd37bbf 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    194,
 /**/
     193,
 /**/