mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.3.1156
Problem: Compiler warnings. (dv1445) Solution: Initialize variables, even when the value isn't really used.
This commit is contained in:
@@ -2734,6 +2734,8 @@ get_lval(name, rettv, lp, unlet, skip, quiet, fne_flags)
|
||||
prevval = key[len];
|
||||
key[len] = NUL;
|
||||
}
|
||||
else
|
||||
prevval = 0; /* avoid compiler warning */
|
||||
wrong = (lp->ll_dict->dv_scope == VAR_DEF_SCOPE
|
||||
&& rettv->v_type == VAR_FUNC
|
||||
&& var_check_func_name(key, lp->ll_di == NULL))
|
||||
|
Reference in New Issue
Block a user