aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/getopt.c b/src/utils/getopt.c
index 442631347c5..bbe81c16990 100644
--- a/src/utils/getopt.c
+++ b/src/utils/getopt.c
@@ -71,7 +71,7 @@ const char *ostr;
place = EMSG;
return -1;
}
- if (place[1] && *++place == '-')
+ if (place[1] && *++place == '-' && place[1] == '\0')
{ /* found "--" */
++optind;
place = EMSG;