fixed the option parser to not loop when a long option is specified
This commit is contained in:
@@ -1464,7 +1464,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
}
|
}
|
||||||
hit = -1;
|
hit = -1;
|
||||||
|
|
||||||
} while(!singleopt && *++parse && !*usedarg);
|
} while(!longopt && !singleopt && *++parse && !*usedarg);
|
||||||
|
|
||||||
return PARAM_OK;
|
return PARAM_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user