From 31581bd750ccaf11bdd7c5b16981ce111ebfcd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eliseo=20Marti=CC=81nez?= Date: Mon, 30 Mar 2015 18:19:43 +0200 Subject: [PATCH] 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. --- src/nvim/eval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 4ab31985b5..d8ea8ecfac 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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);