diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-08-11 18:53:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-08-11 18:53:03 +0200 |
commit | bd8539aac385d265d41da2e8ab59d7b9c3694557 (patch) | |
tree | 6edd23be4bfd095e3e15d46eeb61c395bbd4ace6 /src/option.c | |
parent | 8fee878fe277ec1b1b833ba6e5db679151f7982f (diff) | |
download | vim-git-bd8539aac385d265d41da2e8ab59d7b9c3694557.tar.gz |
patch 7.4.821v7.4.821
Problem: Coverity reports a few problems.
Solution: Avoid the warnings. (Christian Brabandt)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 8e5021cd6..f3e4e20fb 100644 --- a/src/option.c +++ b/src/option.c @@ -9990,6 +9990,8 @@ unset_global_local_option(name, from) buf_T *buf = (buf_T *)from; opt_idx = findoption(name); + if (opt_idx < 0) + return; p = &(options[opt_idx]); switch ((int)p->indir) |