summaryrefslogtreecommitdiff
path: root/t/unit-tests/u-urlmatch-normalization.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2025-05-15 13:11:41 +0000
committerJunio C Hamano <gitster@pobox.com>2025-05-15 13:46:45 -0700
commit7f3ed75ff551e2ca4f8eb0242784e7aacbb14fb3 (patch)
tree83a24a0ddadc8dcdb597747602ecf888eee556a5 /t/unit-tests/u-urlmatch-normalization.c
parentc607410ada02fce5ee2366b68543736176101295 (diff)
commit-graph: avoid malloc'ing a local variable
We do need a context to write the commit graph, but that context is only needed during the life time of `commit_graph_write()`, therefore it can easily be a stack variable. This also helps CodeQL recognize that it is safe to assign the address of other local variables to the context's fields. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/u-urlmatch-normalization.c')
0 files changed, 0 insertions, 0 deletions