]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0410: warning about uninitialized variable v9.1.0410
authorJohn Marriott <basilisk@internode.on.net>
Sun, 12 May 2024 07:01:38 +0000 (09:01 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 12 May 2024 07:01:38 +0000 (09:01 +0200)
Problem:  warning about uninitialized variable
          (Tony Mechelynck, after 9.1.0409)
Solution: initialize variable (John Marriott)

closes: #14754

Signed-off-by: John Marriott <basilisk@internode.on.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/regexp.c
src/version.c

index c80f29af56491822e4755f71e5b414e3fa3223c6..d43193219126299b5e822410540b5fd5560d7e7e 100644 (file)
@@ -642,7 +642,7 @@ skip_regexp_ex(
        {
            if (dirc == '?' && newp != NULL && p[1] == '?')
            {
-               size_t  startplen;
+               size_t  startplen = 0;
 
                // change "\?" to "?", make a copy first.
                if (*newp == NULL)
index 80e7e12348a4337e32d2b7e5bf6804fb49069cc2..2829873f427d1c47af9ab3a42916913787a02199 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    410,
 /**/
     409,
 /**/