summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-02-16 03:03:52 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-02-17 07:52:41 -0800
commit839de2527258879aa21ae7ad425353f06dbb4717 (patch)
tree96c99542c123e40dd65fac8d9f2dbbb64b29e733 /tree-walk.c
parentt1300: add missing &&-chaining (diff)
downloadtgif-839de2527258879aa21ae7ad425353f06dbb4717.tar.xz
config: copy the return value of prefix_filename
The prefix_filename function returns a pointer to a static buffer which may be overwritten by subsequent calls. Since we are going to keep the result around for a while, let's be sure to duplicate it for safety. I don't think this can be triggered as a bug in the current code, but it's a good idea to be defensive, as any resulting bug would be quite subtle. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions