From 0e7d31b1a793a3bc2c9b4175293795c79951b324 Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Thu, 8 Jan 2015 15:14:36 +0100 Subject: Keep return value check simple --- colorize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3