diff options
author | Steven Schubiger <stsc@refcnt.org> | 2017-10-07 21:46:40 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2017-10-07 21:46:40 +0200 |
commit | 7ee1a09534edb8d84d3172413066d7a76edd0291 (patch) | |
tree | 4ee4f8108aa47863d80a573ddfabddf48916960f | |
parent | 26a1d351025317b16263953fd5254e8f027dd651 (diff) | |
download | colorize-7ee1a09534edb8d84d3172413066d7a76edd0291.tar.gz colorize-7ee1a09534edb8d84d3172413066d7a76edd0291.tar.bz2 |
Assert after find_color_entry() returns
-rw-r--r-- | colorize.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |