aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-08-04 22:51:10 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-08-04 22:51:10 +0200
commita1c63b6fe0f7b67bb59af997a830aa5366142cfb (patch)
treed228a5bcd2153e695c89f24f0f5ba7ffea1342e6
parentae871d0d8e5fdd1a49f0bc4192cdc1e750dd0453 (diff)
downloadcolorize-a1c63b6fe0f7b67bb59af997a830aa5366142cfb.tar.gz
colorize-a1c63b6fe0f7b67bb59af997a830aa5366142cfb.tar.bz2
Assert after find_color_entries() returns
-rw-r--r--colorize.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/colorize.c b/colorize.c
index a443368..8e31f5c 100644
--- a/colorize.c
+++ b/colorize.c
@@ -694,6 +694,7 @@ process_args (unsigned int arg_cnt, char **arg_strings, char *attr, const struct
}
find_color_entries (color_names, colors);
+ assert (colors[FOREGROUND] != NULL);
free_color_names (color_names);
if (!colors[FOREGROUND]->code && colors[BACKGROUND] && colors[BACKGROUND]->code)