summaryrefslogtreecommitdiff
path: root/compat/snprintf.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2017-05-04 15:56:47 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-08 12:18:19 +0900
commitda6f847559d8794f25da9f7c090929baebce7751 (patch)
tree63fe2bd5a22d023c7b1c756056cfd9ccf59cd85c /compat/snprintf.c
parentsplit_commit_in_progress(): simplify & fix memory leak (diff)
downloadtgif-da6f847559d8794f25da9f7c090929baebce7751.tar.xz
setup_bare_git_dir(): help static analysis
Coverity reported a memory leak in this function. However, it can only be called once, as setup_git_directory() changes global state and hence is not reentrant. Mark the variable as static to indicate that this is a singleton. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/snprintf.c')
0 files changed, 0 insertions, 0 deletions