summaryrefslogtreecommitdiff
path: root/t/t7001-mv.sh
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2019-01-15 00:39:41 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-15 09:57:41 -0800
commit0a3faa45b1d35b227182166769357e0878da8f92 (patch)
treefecb058078395271e6588f24869c1fd4252b2293 /t/t7001-mv.sh
parentFirst batch after 2.20.1 (diff)
downloadtgif-0a3faa45b1d35b227182166769357e0878da8f92.tar.xz
tree-walk: copy object ID before use
In a future commit, the pointer returned by tree_entry_extract will point into the struct tree_desc, causing its lifetime to be bound to that of the struct tree_desc itself. To ensure this code path keeps working, copy the object_id into a local variable so that it lives long enough. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7001-mv.sh')
0 files changed, 0 insertions, 0 deletions