diff options
Diffstat (limited to 'lib/getopt.c')
| -rw-r--r-- | lib/getopt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/getopt.c b/lib/getopt.c index 71799c9b6d..3f52c6f06b 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -619,8 +619,9 @@ 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; |
