add_rev_cmdline(): make a copy of the name argument
commitdf835d3a0c013b9ef912172663c7c58dad87164d
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:02 +0000 (25 11:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 16:25:00 +0000 (28 09:25 -0700)
treec9b781db5c65aac0f3ecda6e10667e3e807577d8
parentb87dbcc89940edbf92cbab381001542a7cac3627
add_rev_cmdline(): make a copy of the name argument

Instead of assuming that the memory pointed to by the name argument
will live forever, make a local copy of it before storing it in the
ref_cmdline_info.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c