mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.5017: gcc 12.1 warns for uninitialized variable
Problem: Gcc 12.1 warns for uninitialized variable. Solution: Initialize the variable. (closes #10476)
This commit is contained in:
@@ -2023,7 +2023,7 @@ do_unlet(char_u *name, int forceit)
|
||||
{
|
||||
hashtab_T *ht;
|
||||
hashitem_T *hi;
|
||||
char_u *varname;
|
||||
char_u *varname = NULL; // init to shut up gcc
|
||||
dict_T *d;
|
||||
dictitem_T *di;
|
||||
|
||||
|
Reference in New Issue
Block a user