summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--popt/popt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 7d0e3bb..40b961f 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -297,6 +297,8 @@ int poptGetNextOpt(poptContext con) {
int singleDash;
while (!done) {
+ longArg = NULL;
+
while (!con->os->nextCharArg && con->os->next == con->os->argc
&& con->os > con->optionStack)
con->os--;