diff options
Diffstat (limited to 'opts.c')
-rw-r--r-- | opts.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -59,11 +59,13 @@ static int process_option_group(char *arg, struct opt opts[], if (comma) arg = comma + 1; } - if (!remove_one && prevcomma) - *prevcomma = ','; + if (!remove_one) { + if (prevcomma) + *prevcomma = ','; + prevcomma = comma; + } if (!comma) break; - prevcomma = comma; } return remove; } |