diff --git a/src/rcfile.c b/src/rcfile.c index 945f0509..301e6457 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -1049,7 +1049,7 @@ void parse_rule(char *ptr, int rex_flags) return; } - while (ptr != NULL && *ptr != '\0') { + while (*ptr != '\0') { colortype *newcolor = NULL; /* Container for a regex (or regex pair) and the color it paints. */ bool goodstart; @@ -1102,7 +1102,7 @@ void parse_rule(char *ptr, int rex_flags) if (!expectend) continue; - if (ptr == NULL || strncmp(ptr, "end=", 4) != 0) { + if (strncmp(ptr, "end=", 4) != 0) { jot_error(N_("\"start=\" requires a corresponding \"end=\"")); return; }