summaryrefslogtreecommitdiff
path: root/test-date.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-08-10 05:35:38 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-10 15:37:12 -0700
commite3cf230324f740653d4fb4a3087c2daf9da62029 (patch)
treea463f382e6d547ae669948bf4a40175be3063113 /test-date.c
parentprefer git_pathdup to git_path in some possibly-dangerous cases (diff)
downloadtgif-e3cf230324f740653d4fb4a3087c2daf9da62029.tar.xz
prefer mkpathdup to mkpath in assignments
As with the previous commit to git_path, assigning the result of mkpath is suspicious, since it is not clear whether we will still depend on the value after it may have been overwritten by subsequent calls. This patch converts low-hanging fruit to use mkpathdup instead of mkpath (with the downside that we must remember to free the result). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-date.c')
0 files changed, 0 insertions, 0 deletions