Commit 07c67138 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fixed the option parser to not loop when a long option is specified

parent 10717bd3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1464,7 +1464,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
    }
    hit = -1;

  } while(!singleopt && *++parse && !*usedarg);
  } while(!longopt && !singleopt && *++parse && !*usedarg);

  return PARAM_OK;
}