--- 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) {