aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xz/options.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xz/options.c b/src/xz/options.c
index 3d5d8870..8ac67504 100644
--- a/src/xz/options.c
+++ b/src/xz/options.c
@@ -69,6 +69,13 @@ parse_options(const char *str, const option_map *opts,
char *name = s;
while (true) {
+ if (*name == ',') {
+ if (*++name == '\0')
+ break;
+
+ continue;
+ }
+
char *split = strchr(name, ',');
if (split != NULL)
*split = '\0';