mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 22:52:42 +00: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:
committed by
Justin M. Keyes
parent
ee3af18640
commit
31581bd750
@@ -10810,6 +10810,8 @@ static void f_jobstart(typval_T *argvars, typval_T *rettv)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(args->lv_first);
|
||||||
|
|
||||||
if (!os_can_exe(args->lv_first->li_tv.vval.v_string, NULL)) {
|
if (!os_can_exe(args->lv_first->li_tv.vval.v_string, NULL)) {
|
||||||
// String is not executable
|
// String is not executable
|
||||||
EMSG2(e_jobexe, args->lv_first->li_tv.vval.v_string);
|
EMSG2(e_jobexe, args->lv_first->li_tv.vval.v_string);
|
||||||
|
|||||||
Reference in New Issue
Block a user