]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
has_color_name(): return true from else branch
[colorize.git] / colorize.c
index 0cf44cb310efebb3d17e5c8756b272622f427ade..9e0f57490adae9dec651c74510ee9d0cfed99605 100644 (file)
 
 #define MAX_ATTRIBUTE_CHARS (6 * 2)
 
-#define VERSION "0.62"
+#define VERSION "0.63"
 
 typedef enum { false, true } bool;
 
@@ -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 *