]> git.refcnt.org Git - colorize.git/commitdiff
Keep return value check simple
authorSteven Schubiger <stsc@refcnt.org>
Thu, 8 Jan 2015 14:14:36 +0000 (15:14 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Thu, 8 Jan 2015 14:14:36 +0000 (15:14 +0100)
colorize.c

index 2cd137a5e65b18452f55115d554974ae285c9c58..7babb864816adbb7940c7bd1defafb218ce72bda 100644 (file)
@@ -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;