Fix warnings: ex_docmd.c: eval_vars(): Unitialized arg: FP.

Problem    : Uninitialized argument value @ 7704.
Diagnostic : False positive.
Rationale  : Error occurs if `switch(spec_idx)` doesn't enter any case,
             which should not occur after
             `spec_idx = find_cmdline_var(...)` returned non-negative.
Resolution : Add default clause to switch and error if reached.
This commit is contained in:
Eliseo Martínez 2014-11-08 11:33:36 +01:00
parent 49cf578b76
commit 1575642b11

View File

@ -7699,6 +7699,10 @@ eval_vars (
sprintf((char *)strbuf, "%" PRId64, (int64_t)sourcing_lnum);
result = strbuf;
break;
default:
// should not happen
*errormsg = (char_u *)"";
return NULL;
}
resultlen = (int)STRLEN(result); /* length of new string */