mirror of https://git.tukaani.org/xz.git
Fix options parsing bug in xz.
xz used to reject "xz --lzma2=pb=2," while "xz --lzma2=pb=2,," worked. Now both work.
This commit is contained in:
parent
5f6dddc6c9
commit
25adaaa56e
|
@ -68,11 +68,9 @@ parse_options(const char *str, const option_map *opts,
|
||||||
char *s = xstrdup(str);
|
char *s = xstrdup(str);
|
||||||
char *name = s;
|
char *name = s;
|
||||||
|
|
||||||
while (true) {
|
while (*name != '\0') {
|
||||||
if (*name == ',') {
|
if (*name == ',') {
|
||||||
if (*++name == '\0')
|
++name;
|
||||||
break;
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue