From 947ccbb597f56c57d4b4e82fdf21de4afc6b588c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 3 Apr 2019 18:55:24 +0200 Subject: [PATCH] rcfile: don't break a chain of 'else if' [scan-build] The mistake was made when 'guidestripe' was added, in commit 66c6eb51. --- src/rcfile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 81cd4894..674195a1 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1126,8 +1126,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) stripe_column = 0; } free(option); - } - if (strcasecmp(rcopts[i].name, "matchbrackets") == 0) { + } else if (strcasecmp(rcopts[i].name, "matchbrackets") == 0) { if (has_blank_char(option)) { rcfile_error(N_("Non-blank characters required")); free(option);