commit 947ccbb597f56c57d4b4e82fdf21de4afc6b588c
parent 671db5e1e3fe0bb611888a2aee90ee4112cf96e4
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 3 Apr 2019 18:55:24 +0200
rcfile: don't break a chain of 'else if' [scan-build]
The mistake was made when 'guidestripe' was added, in commit 66c6eb51.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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);