]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1911: build failure on Solaris with gcc 5 v9.1.1911
authorChristian Brabandt <cb@256bit.org>
Wed, 12 Nov 2025 20:04:18 +0000 (20:04 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 12 Nov 2025 20:04:18 +0000 (20:04 +0000)
Problem:  build failure on Solaris Sparc with gcc 5
          (idgn23, after v9.1.1736)
Solution: Correctly initialize the key_name variable.

fixes: #18693

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

index 4c365b19bdf4cb729c2ff44ecec42c2d63f1033d..c317ca60122e2382566efb41db0794e01629c43a 100644 (file)
@@ -5362,7 +5362,7 @@ put_key_modifiers_in_typebuf(
     static int
 parse_csi_f_keys(int arg)
 {
-    char_u key_name[2] = "";
+    char_u key_name[2] = { 0, 0 };
 
     switch (arg)
     {
index eea70581fe22d10ca2a49c34b200a3fc9c4409c3..5212d18888e571b4bfffe244687c8757a90ea251 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1911,
 /**/
     1910,
 /**/