summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-08-11 18:53:03 +0200
committerBram Moolenaar <Bram@vim.org>2015-08-11 18:53:03 +0200
commitbd8539aac385d265d41da2e8ab59d7b9c3694557 (patch)
tree6edd23be4bfd095e3e15d46eeb61c395bbd4ace6 /src/option.c
parent8fee878fe277ec1b1b833ba6e5db679151f7982f (diff)
downloadvim-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.c2
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)