mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +00:00
vim-patch:8.2.5017: gcc 12.1 warns for uninitialized variable
Problem: Gcc 12.1 warns for uninitialized variable.
Solution: Initialize the variable. (closes vim/vim#10476)
8be36eecdc
Co-authored-by: mityu <mityu.mail@gmail.com>
This commit is contained in:
@@ -1369,7 +1369,7 @@ static void tv_list_unlet_range(list_T *const l, listitem_T *const li_first, con
|
|||||||
int do_unlet(const char *const name, const size_t name_len, const bool forceit)
|
int do_unlet(const char *const name, const size_t name_len, const bool forceit)
|
||||||
FUNC_ATTR_NONNULL_ALL
|
FUNC_ATTR_NONNULL_ALL
|
||||||
{
|
{
|
||||||
const char *varname;
|
const char *varname = NULL; // init to shut up gcc
|
||||||
dict_T *dict;
|
dict_T *dict;
|
||||||
hashtab_T *ht = find_var_ht_dict(name, name_len, &varname, &dict);
|
hashtab_T *ht = find_var_ht_dict(name, name_len, &varname, &dict);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user