]> git.refcnt.org Git - colorize.git/commitdiff
process_opt_exclude_random(): don't check for non-NULLness
authorSteven Schubiger <stsc@refcnt.org>
Sat, 28 Mar 2020 15:32:28 +0000 (16:32 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Sat, 28 Mar 2020 15:32:28 +0000 (16:32 +0100)
because release_var() already does so.

colorize.c

index 622f609a73b6f6ae32f9ff9d3a8fe244d1cf4605..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 */