mirror of
https://git.tukaani.org/xz.git
synced 2025-02-20 07:28:20 +00:00
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 *name = s;
|
||||
|
||||
while (true) {
|
||||
while (*name != '\0') {
|
||||
if (*name == ',') {
|
||||
if (*++name == '\0')
|
||||
break;
|
||||
|
||||
++name;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user