aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2020-03-28 16:32:28 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2020-03-28 16:32:28 +0100
commitc4524ce6e98aca85c74e53c51494f3e38787480a (patch)
tree4dac5ee72a7ce1a0de2e338742f152e9c60033ff /colorize.c
parent52df2aae8173006fa182bae85890e56afb7d9054 (diff)
downloadcolorize-c4524ce6e98aca85c74e53c51494f3e38787480a.tar.gz
colorize-c4524ce6e98aca85c74e53c51494f3e38787480a.tar.bz2
process_opt_exclude_random(): don't check for non-NULLness
because release_var() already does so.
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c3
1 files changed, 1 insertions, 2 deletions
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 */