commit | bd8539aac385d265d41da2e8ab59d7b9c3694557 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Aug 11 18:53:03 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Aug 11 18:53:03 2015 +0200 |
tree | 6edd23be4bfd095e3e15d46eeb61c395bbd4ace6 | |
parent | 8fee878fe277ec1b1b833ba6e5db679151f7982f [diff] [blame] |
patch 7.4.821 Problem: Coverity reports a few problems. Solution: Avoid the warnings. (Christian Brabandt)
diff --git a/src/option.c b/src/option.c index 8e5021c..f3e4e20 100644 --- a/src/option.c +++ b/src/option.c
@@ -9990,6 +9990,8 @@ buf_T *buf = (buf_T *)from; opt_idx = findoption(name); + if (opt_idx < 0) + return; p = &(options[opt_idx]); switch ((int)p->indir)