aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorize.c b/colorize.c
index 49879c5..0cf44cb 100644
--- a/colorize.c
+++ b/colorize.c
@@ -1448,8 +1448,8 @@ has_color_name (const char *str, const char *name)
{
char *p;
- assert (strlen (str));
- assert (strlen (name));
+ assert (strlen (str) > 0);
+ assert (strlen (name) > 0);
if (!(*str == *name || *str == toupper (*name)))
return false;