]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up redundant expression
authororbitcowboy <ettl.martin78@gmail.com>
Mon, 8 Jan 2018 12:46:40 +0000 (13:46 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 11 Jan 2018 20:02:33 +0000 (21:02 +0100)
getopt_long.c

index e426b1aefa06fcd15fbca114941786ff2a3326fd..61141c236b5241c724bfb4e1b8bf1d98a2e91a03 100644 (file)
@@ -72,14 +72,14 @@ getopt_long(int argc, char *const argv[],
 
                place++;
 
-               if (place[0] && place[0] == '-' && place[1] == '\0')
+               if (place[0] == '-' && place[1] == '\0')
                { /* found "--" */
                        ++optind;
                        place = EMSG;
                        return -1;
                }
 
-               if (place[0] && place[0] == '-' && place[1])
+               if (place[0] == '-' && place[1])
                {
                        /* long option */
                        size_t namelen;