From: Steven Schubiger Date: Fri, 4 Aug 2017 20:51:10 +0000 (+0200) Subject: Assert after find_color_entries() returns X-Git-Tag: v0.62~2 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=a1c63b6fe0f7b67bb59af997a830aa5366142cfb Assert after find_color_entries() returns --- 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)