From: Steven Schubiger Date: Sun, 8 Apr 2018 20:00:12 +0000 (+0200) Subject: process_args(): comment color_names[] initialization X-Git-Tag: v0.64~5 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=c6f1715053160df72b63ffc852da15e2c5ca44c4 process_args(): comment color_names[] initialization --- diff --git a/colorize.c b/colorize.c index 63237a5..9c30aeb 100644 --- a/colorize.c +++ b/colorize.c @@ -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;