]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
process_opt_exclude_random(): don't check for non-NULLness
[colorize.git] / colorize.c
index 50011e29615c986320137e200fa33e5ad801d07b..c4319331d27e2dbb4ffa3f06f2e52206f1b0945d 100644 (file)
@@ -628,8 +628,7 @@ process_opt_exclude_random (const char *s, const bool is_opt)
 {
     bool valid = false;
     unsigned int i;
-    if (exclude)
-      RELEASE_VAR (exclude);
+    RELEASE_VAR (exclude);
     exclude = xstrdup (s);
     STACK_VAR (exclude);
     for (i = 1; i < tables[GENERIC].count - 1; i++) /* skip color none and default */
@@ -779,7 +778,7 @@ init_conf_vars (const struct conf *config)
         else if (streq (config->omit_color_empty, "no"))
           omit_color_empty = false;
         else
-          vfprintf_fail ("omit-color-empty conf option is not valid");
+          vfprintf_fail (formats[FMT_GENERIC], "omit-color-empty conf option is not valid");
       }
 }