From a1c63b6fe0f7b67bb59af997a830aa5366142cfb Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Fri, 4 Aug 2017 22:51:10 +0200 Subject: Assert after find_color_entries() returns --- colorize.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3