]> git.refcnt.org Git - colorize.git/commitdiff
has_color_name(): return true from else branch
authorSteven Schubiger <stsc@refcnt.org>
Sat, 16 Dec 2017 18:38:43 +0000 (19:38 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sat, 16 Dec 2017 18:38:43 +0000 (19:38 +0100)
colorize.c

index 1d83781d6df5ff3fb636312aca4fd24f81753bd5..9e0f57490adae9dec651c74510ee9d0cfed99605 100644 (file)
@@ -1456,8 +1456,8 @@ has_color_name (const char *str, const char *name)
     else if (*(name + 1) != '\0'
      && !((p = strstr (str + 1, name + 1)) && p == str + 1))
       return false;
-
-    return true;
+    else
+      return true;
 }
 
 static FILE *