diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-03-30 18:19:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-07 20:04:33 -0400 |
commit | 31581bd750ccaf11bdd7c5b16981ce111ebfcd74 (patch) | |
tree | 200cb1fb83467a5d043fe7d1a84411f54cd6d16a /src/nvim/eval.c | |
parent | ee3af18640a61d7b3191cc490c824b23cb8278f9 (diff) | |
download | rneovim-31581bd750ccaf11bdd7c5b16981ce111ebfcd74.tar.gz rneovim-31581bd750ccaf11bdd7c5b16981ce111ebfcd74.tar.bz2 rneovim-31581bd750ccaf11bdd7c5b16981ce111ebfcd74.zip |
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.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |