summaryrefslogtreecommitdiff
path: root/lib/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getopt.c')
-rw-r--r--lib/getopt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index 3f52c6f06b..71799c9b6d 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -619,9 +619,8 @@ int long_only;
if (longopts != NULL
&& (argv[optind][1] == '-'
- || (long_only
- && (argv[optind][2]
- || !my_index(optstring, argv[optind][1]))))) {
+ || (long_only && (argv[optind][2]
+ || !my_index(optstring, argv[optind][1]))))) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;