From: Steven Schubiger Date: Sat, 28 Mar 2020 15:32:28 +0000 (+0100) Subject: process_opt_exclude_random(): don't check for non-NULLness X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=c4524ce6e98aca85c74e53c51494f3e38787480a process_opt_exclude_random(): don't check for non-NULLness because release_var() already does so. --- diff --git a/colorize.c b/colorize.c index 622f609..c431933 100644 --- a/colorize.c +++ b/colorize.c @@ -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 */