From 7ee1a09534edb8d84d3172413066d7a76edd0291 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sat, 7 Oct 2017 21:46:40 +0200 Subject: Assert after find_color_entry() returns --- colorize.c | 1 + 1 file changed, 1 insertion(+) diff --git a/colorize.c b/colorize.c index cefde45..ff346b0 100644 --- a/colorize.c +++ b/colorize.c @@ -704,6 +704,7 @@ process_args (unsigned int arg_cnt, char **arg_strings, char *attr, const struct color_name.name = color_name.orig = "default"; find_color_entry (&color_name, FOREGROUND, colors); + assert (colors[FOREGROUND]->code != NULL); } process_file_arg (file_string, file, stream); -- cgit v1.2.3