aboutsummaryrefslogtreecommitdiffstats
path: root/help.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 /help.c
parentfetch: carefully clear local variable's address after use (diff)
downloadgit-7f3ed75ff551e2ca4f8eb0242784e7aacbb14fb3.tar.gz
git-7f3ed75ff551e2ca4f8eb0242784e7aacbb14fb3.zip
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 'help.c')
0 files changed, 0 insertions, 0 deletions