aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-12-16 19:38:43 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-12-16 19:38:43 +0100
commitc3d41c66eccb2d33efb03a2a7576f1121430ae89 (patch)
treea441311195cbb1343bdce4d0d1a28417333afe97
parentaa263791f3e5e06ffd46621fdf9132921f8911a5 (diff)
downloadcolorize-c3d41c66eccb2d33efb03a2a7576f1121430ae89.tar.gz
colorize-c3d41c66eccb2d33efb03a2a7576f1121430ae89.tar.bz2
has_color_name(): return true from else branch
-rw-r--r--colorize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorize.c b/colorize.c
index 1d83781..9e0f574 100644
--- a/colorize.c
+++ b/colorize.c
@@ -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 *