diff options
author | Steven Schubiger <stsc@refcnt.org> | 2017-08-04 22:51:10 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2017-08-04 22:51:10 +0200 |
commit | a1c63b6fe0f7b67bb59af997a830aa5366142cfb (patch) | |
tree | d228a5bcd2153e695c89f24f0f5ba7ffea1342e6 | |
parent | ae871d0d8e5fdd1a49f0bc4192cdc1e750dd0453 (diff) | |
download | colorize-a1c63b6fe0f7b67bb59af997a830aa5366142cfb.tar.gz colorize-a1c63b6fe0f7b67bb59af997a830aa5366142cfb.tar.bz2 |
Assert after find_color_entries() returns
-rw-r--r-- | colorize.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |