Fix warnings: eval.c: f_jobstart(): Np dereference: FP.

Problem    : Dereference of null pointer @ 10812.
Diagnostic : False positive.
Rationale  : `args->lv_first` can't be NULL, as we have just stated
             above that that there's at least one item.
Resolution : Assert.
This commit is contained in:
Eliseo Martínez 2015-03-30 18:19:43 +02:00 committed by Justin M. Keyes
parent ee3af18640
commit 31581bd750

View File

@ -10810,6 +10810,8 @@ static void f_jobstart(typval_T *argvars, typval_T *rettv)
return;
}
assert(args->lv_first);
if (!os_can_exe(args->lv_first->li_tv.vval.v_string, NULL)) {
// String is not executable
EMSG2(e_jobexe, args->lv_first->li_tv.vval.v_string);