aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-01-08 15:14:36 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-01-08 15:14:36 +0100
commit0e7d31b1a793a3bc2c9b4175293795c79951b324 (patch)
tree9a680308046fe972a284c775a343f876284c922e
parent5703377a911a2b6acd03e988fafd433442930b1f (diff)
downloadcolorize-0e7d31b1a793a3bc2c9b4175293795c79951b324.tar.gz
colorize-0e7d31b1a793a3bc2c9b4175293795c79951b324.tar.bz2
Keep return value check simple
-rw-r--r--colorize.c2
1 files changed, 1 insertions, 1 deletions
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;