patch 9.1.0884: gcc warns about uninitialized variable

Commit: 
https://github.com/vim/vim/commit/c847c12cddcd3943f6a23235dd2f749edc72c997
Author: John Marriott <basil...@internode.on.net>
Date:   Sun Nov 24 14:09:40 2024 +0100

    patch 9.1.0884: gcc warns about uninitialized variable
    
    Problem:  gcc warns about uninitialized variable in vim_strnicmp_asc()
    Solution: initialize variable to 1
              (John Marriott)
    
    closes: #16108
    
    Signed-off-by: John Marriott <basil...@internode.on.net>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/strings.c b/src/strings.c
index a586d8a37..cd75bc371 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -597,7 +597,7 @@ vim_strnicmp(char *s1, char *s2, size_t len)
     int
 vim_strnicmp_asc(char *s1, char *s2, size_t len)
 {
-    int                i;
+    int                i = 0;
     int                save_cmp_flags = cmp_flags;
 
     cmp_flags |= CMP_KEEPASCII;                // compare by ASCII value, 
ignoring locale
diff --git a/src/version.c b/src/version.c
index 6f01f781b..f81cf12be 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    884,
 /**/
     883,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tFCS8-001RSB-26%40256bit.org.

Raspunde prin e-mail lui