Mercurial > vim
diff src/eval.c @ 4819:8c4324e6f477 v7.3.1156
updated for version 7.3.1156
Problem: Compiler warnings. (dv1445)
Solution: Initialize variables, even when the value isn't really used.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 09 Jun 2013 20:51:00 +0200 |
parents | 66803af09906 |
children | 208a6c04e6b8 |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -2734,6 +2734,8 @@ get_lval(name, rettv, lp, unlet, skip, q 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))