Skip to content

Commit

Permalink
Merge branch 'tr/copy-revisions-from-stdin' into maint
Browse files Browse the repository at this point in the history
* tr/copy-revisions-from-stdin:
  read_revisions_from_stdin: make copies for handle_revision_arg
  • Loading branch information
Junio C Hamano committed May 9, 2013
2 parents ea2d20d + 70d26c6 commit 07e03d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,8 @@ static void read_revisions_from_stdin(struct rev_info *revs,
}
die("options not supported in --stdin mode");
}
if (handle_revision_arg(sb.buf, revs, 0, REVARG_CANNOT_BE_FILENAME))
if (handle_revision_arg(xstrdup(sb.buf), revs, 0,
REVARG_CANNOT_BE_FILENAME))
die("bad revision '%s'", sb.buf);
}
if (seen_dashdash)
Expand Down

0 comments on commit 07e03d4

Please sign in to comment.