mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
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:
parent
ee3af18640
commit
31581bd750
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user