comparison src/option.c @ 7007:5ea5bd9c18d2 v7.4.821

patch 7.4.821 Problem: Coverity reports a few problems. Solution: Avoid the warnings. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 18:53:03 +0200
parents a958ac497a81
children e668b160ac68
comparison
equal deleted inserted replaced
7006:1520ad7bad2f 7007:5ea5bd9c18d2
9988 struct vimoption *p; 9988 struct vimoption *p;
9989 int opt_idx; 9989 int opt_idx;
9990 buf_T *buf = (buf_T *)from; 9990 buf_T *buf = (buf_T *)from;
9991 9991
9992 opt_idx = findoption(name); 9992 opt_idx = findoption(name);
9993 if (opt_idx < 0)
9994 return;
9993 p = &(options[opt_idx]); 9995 p = &(options[opt_idx]);
9994 9996
9995 switch ((int)p->indir) 9997 switch ((int)p->indir)
9996 { 9998 {
9997 /* global option with local value: use local value if it's been set */ 9999 /* global option with local value: use local value if it's been set */