diff options
author | Steven Schubiger <stsc@refcnt.org> | 2018-04-08 22:00:12 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2018-04-08 22:00:12 +0200 |
commit | c6f1715053160df72b63ffc852da15e2c5ca44c4 (patch) | |
tree | a32d25121f8eaf46136cf89df954fb188f76d567 /colorize.c | |
parent | 359c07a2780a0c59eeac74ffd9a5d089cda6e41b (diff) | |
download | colorize-c6f1715053160df72b63ffc852da15e2c5ca44c4.tar.gz colorize-c6f1715053160df72b63ffc852da15e2c5ca44c4.tar.bz2 |
process_args(): comment color_names[] initialization
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -661,7 +661,11 @@ process_args (unsigned int arg_cnt, char **arg_strings, char *attr, const struct int ret; char *p; struct stat sb; - struct color_name *color_names[3] = { NULL, NULL, NULL }; + struct color_name *color_names[3] = { + NULL, /* foreground */ + NULL, /* background */ + NULL, /* sentinel value */ + }; const char *color_string = arg_cnt >= 1 ? arg_strings[0] : NULL; const char *file_string = arg_cnt == 2 ? arg_strings[1] : NULL; |