From 25adaaa56e2e51a47a910a8d73452414619a2e53 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 1 Sep 2009 20:23:30 +0300 Subject: Fix options parsing bug in xz. xz used to reject "xz --lzma2=pb=2," while "xz --lzma2=pb=2,," worked. Now both work. --- src/xz/options.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xz/options.c b/src/xz/options.c index 8ac67504..c52f61e0 100644 --- a/src/xz/options.c +++ b/src/xz/options.c @@ -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; } -- cgit v1.2.3