Files
git/builtin
Thomas Rast 212eb96a96 apply: carefully strdup a possibly-NULL name
2901bbe (apply: free patch->{def,old,new}_name fields, 2012-03-21)
cleaned up the memory management of filenames in the patches, but
forgot that find_name_traditional() can return NULL as a way of saying
"I couldn't find a name".

That NULL unfortunately gets passed into xstrdup() next, resulting in
a segfault.  Use null_strdup() so as to safely propagate the null,
which will let us emit the correct error message.

Reported-by: DevHC on #git
Signed-off-by: Thomas Rast <trast@inf.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-06-21 08:36:07 -07:00
..
2012-01-06 12:44:07 -08:00
2012-03-28 15:19:17 -07:00
2012-04-18 16:17:42 -07:00
2012-05-25 12:04:19 -07:00
2012-05-03 15:13:31 -07:00
2011-12-28 11:32:36 -08:00
2011-12-22 11:27:26 -08:00
2012-05-20 18:48:10 -07:00