]> git.refcnt.org Git - colorize.git/commitdiff
process_args(): comment color_names[] initialization
authorSteven Schubiger <stsc@refcnt.org>
Sun, 8 Apr 2018 20:00:12 +0000 (22:00 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 8 Apr 2018 20:00:12 +0000 (22:00 +0200)
colorize.c

index 63237a5240d4cf7a4e44942b9503a7db9357d5c9..9c30aeb6b6203672ac372267c97c386825cb7cfc 100644 (file)
@@ -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;