mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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 <basilisk@internode.on.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
ccc024f3a7
commit
c847c12cdd
@ -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
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
884,
|
||||
/**/
|
||||
883,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user