From: Steven Schubiger Date: Thu, 8 Jan 2015 14:14:36 +0000 (+0100) Subject: Keep return value check simple X-Git-Tag: v0.55~4 X-Git-Url: http://git.refcnt.org/?p=colorize.git;a=commitdiff_plain;h=0e7d31b1a793a3bc2c9b4175293795c79951b324 Keep return value check simple --- diff --git a/colorize.c b/colorize.c index 2cd137a..7babb86 100644 --- a/colorize.c +++ b/colorize.c @@ -499,7 +499,7 @@ process_args (unsigned int arg_cnt, char **arg_strings, bool *bold, const struct /* Ensure that we don't fail if there's a file with one or more color names in its path. */ - if (ret != -1) + if (ret == 0) /* success */ { bool have_file; unsigned int c;