aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-10-07 21:46:40 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-10-07 21:46:40 +0200
commit7ee1a09534edb8d84d3172413066d7a76edd0291 (patch)
tree4ee4f8108aa47863d80a573ddfabddf48916960f
parent26a1d351025317b16263953fd5254e8f027dd651 (diff)
downloadcolorize-7ee1a09534edb8d84d3172413066d7a76edd0291.tar.gz
colorize-7ee1a09534edb8d84d3172413066d7a76edd0291.tar.bz2
Assert after find_color_entry() returns
-rw-r--r--colorize.c1
1 files changed, 1 insertions, 0 deletions
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);