From: Force Charlie <charlieio@xxxxxxxxxxx> Because static variables are not initialized properly, temporary files may not be deleted when receive-pack receives a signal. Signed-off-by: Force Charlie <charlieio@xxxxxxxxxxx> --- Correctly initialize 'installed_handlers' Because static variables are not initialized properly, temporary files may not be deleted when receive-pack receives a signal. Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-630%2Ffcharlie%2Fincoming_fix-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-630/fcharlie/incoming_fix-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/630 tmp-objdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmp-objdir.c b/tmp-objdir.c index 91c00567f4d..c1ccf78e5ed 100644 --- a/tmp-objdir.c +++ b/tmp-objdir.c @@ -123,7 +123,7 @@ static int setup_tmp_objdir(const char *root) struct tmp_objdir *tmp_objdir_create(void) { - static int installed_handlers; + static int installed_handlers = 0; struct tmp_objdir *t; if (the_tmp_objdir) base-commit: 07d8ea56f2ecb64b75b92264770c0a664231ce17 -- gitgitgadget