From: orbitcowboy Date: Mon, 8 Jan 2018 12:46:40 +0000 (+0100) Subject: Clean up redundant expression X-Git-Tag: v3.3.5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2e50e0448bf8c9a38b2d8e81dfe9375def20668;p=thirdparty%2Fccache.git Clean up redundant expression --- diff --git a/getopt_long.c b/getopt_long.c index e426b1aef..61141c236 100644 --- a/getopt_long.c +++ b/getopt_long.c @@ -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;