We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 961abca + 3f4f17b commit abecddeCopy full SHA for abecdde
1 file changed
diff.c
@@ -3653,7 +3653,12 @@ static void enable_patch_output(int *fmt) {
3653
3654
static int parse_one_token(const char **arg, const char *token)
3655
{
3656
- return skip_prefix(*arg, token, arg) && (!**arg || **arg == ',');
+ const char *rest;
3657
+ if (skip_prefix(*arg, token, &rest) && (!*rest || *rest == ',')) {
3658
+ *arg = rest;
3659
+ return 1;
3660
+ }
3661
+ return 0;
3662
}
3663
3664
static int parse_ws_error_highlight(struct diff_options *opt, const char *arg)
0 commit comments