commit | 4380d1ea239fe7f2546b7cad4ad0c424f0f5979a | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jun 09 20:51:00 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jun 09 20:51:00 2013 +0200 |
tree | f6aba518b975d15c8ac6b5a12d829d9b0923c332 | |
parent | 11354759e2c35616ea7a4daef0b05337846adf76 [diff] [blame] |
updated for version 7.3.1156 Problem: Compiler warnings. (dv1445) Solution: Initialize variables, even when the value isn't really used.
diff --git a/src/eval.c b/src/eval.c index da3d2bd..7250556 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -2734,6 +2734,8 @@ 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))