summaryrefslogtreecommitdiff
path: root/t/t6001-rev-list-graft.sh
diff options
context:
space:
mode:
authorLibravatar Ramsay Jones <ramsay@ramsay1.demon.co.uk>2012-09-04 18:27:54 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-04 13:34:46 -0700
commit66a51a9aaec3f53250b1d515a1bd81044ebb354b (patch)
tree72bd0f9b4b4caa15a7fe94e1566d81d440507590 /t/t6001-rev-list-graft.sh
parentpath.c: Remove the 'git_' prefix from a file scope function (diff)
downloadtgif-66a51a9aaec3f53250b1d515a1bd81044ebb354b.tar.xz
path.c: Don't discard the return value of vsnpath()
The git_snpath() and git_pathdup() functions both use the (static) function vsnpath() in their implementation. Also, they both discard the return value of vsnpath(), which has the effect of ignoring the side effect of calling cleanup_path() in the non-error return path. In order to ensure that the required cleanup happens, we use the pointer returned by vsnpath(), rather than the buffer passed into vsnpath(), to derive the return value from git_snpath() and git_pathdup(). Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6001-rev-list-graft.sh')
0 files changed, 0 insertions, 0 deletions