tweaks: add a pair of braces, to silence a compiler warning

Also, put an 'else' on the same line as the preceding closing brace.
This commit is contained in:
Benno Schulenberg 2019-05-21 17:25:45 +02:00
parent 2669d3623d
commit 1e2e6733df

View File

@ -1088,18 +1088,17 @@ void parse_rcfile(FILE *rcstream, bool syntax_only, bool headers_only)
live_syntax->name);
parse_syntax(ptr, headers_only);
}
}
else if (strcasecmp(keyword, "header") == 0) {
} else if (strcasecmp(keyword, "header") == 0) {
if (headers_only || !syntax_only)
grab_and_store("header", ptr, &live_syntax->headers);
} else if (strcasecmp(keyword, "magic") == 0)
} else if (strcasecmp(keyword, "magic") == 0) {
#ifdef HAVE_LIBMAGIC
if (headers_only || !syntax_only)
grab_and_store("magic", ptr, &live_syntax->magics);
#else
;
#endif
else if (headers_only)
} else if (headers_only)
break;
else if (parse_syntax_commands(keyword, ptr))
;