summaryrefslogtreecommitdiff
blob: 83ed0229e998cc8ea054d2ec697fe4a047adda8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- popt.c.bak
+++ popt.c
@@ -748,9 +748,7 @@
 	    if (origOptString == NULL)	/* XXX can't happen */
 		return POPT_ERROR_BADOPT;
 
-	    if (con->restLeftover || *origOptString != '-' ||
-		(*origOptString == '-' && origOptString[1] == '\0'))
-	    {
+	    if (con->restLeftover || *origOptString != '-') {
 		if (con->flags & POPT_CONTEXT_POSIXMEHARDER)
 		    con->restLeftover = 1;
 		if (con->flags & POPT_CONTEXT_ARG_OPTS) {