summaryrefslogtreecommitdiff
path: root/t/t7500/add-whitespaced-content
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@inf.ethz.ch>2013-06-21 13:38:00 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-21 08:36:07 -0700
commit212eb96a96e256933a76e48d85fa4f500bed0dee (patch)
tree114f51785e5003bb54b424f0bf5eabd574b53cc5 /t/t7500/add-whitespaced-content
parentGit 1.7.11 (diff)
downloadtgif-212eb96a96e256933a76e48d85fa4f500bed0dee.tar.xz
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>
Diffstat (limited to 't/t7500/add-whitespaced-content')
0 files changed, 0 insertions, 0 deletions