Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit 07e03d4

Browse files
committed
Merge branch 'tr/copy-revisions-from-stdin' into maint
* tr/copy-revisions-from-stdin: read_revisions_from_stdin: make copies for handle_revision_arg
2 parents ea2d20d + 70d26c6 commit 07e03d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

revision.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,8 @@ static void read_revisions_from_stdin(struct rev_info *revs,
12761276
}
12771277
die("options not supported in --stdin mode");
12781278
}
1279-
if (handle_revision_arg(sb.buf, revs, 0, REVARG_CANNOT_BE_FILENAME))
1279+
if (handle_revision_arg(xstrdup(sb.buf), revs, 0,
1280+
REVARG_CANNOT_BE_FILENAME))
12801281
die("bad revision '%s'", sb.buf);
12811282
}
12821283
if (seen_dashdash)

0 commit comments

Comments
 (0)