Merge r362 from libarchive.googlecode.com: Minor fix to
custom argument parser.
This commit is contained in:
parent
32baf20434
commit
24b4dd3387
@ -975,9 +975,10 @@ int main(int argc, char **argv)
|
||||
*/
|
||||
++argv; --argc;/* Skip program name */
|
||||
while (*argv != NULL) {
|
||||
if (**argv != '-')
|
||||
break;
|
||||
p = *argv++;
|
||||
if (*p++ != '-')
|
||||
usage(progname);
|
||||
++p; /* Skip '-' */
|
||||
while (*p != '\0') {
|
||||
option = *p++;
|
||||
option_arg = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user