From: "Force Charlie via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Force Charlie <charlieio@outlook.com>,
Force Charlie <charlieio@outlook.com>
Subject: [PATCH] Correctly initialize 'installed_handlers'
Date: Fri, 08 May 2020 07:05:13 +0000 [thread overview]
Message-ID: <pull.630.git.1588921514146.gitgitgadget@gmail.com> (raw)
From: Force Charlie <charlieio@outlook.com>
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@outlook.com>
---
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
next reply other threads:[~2020-05-08 7:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 7:05 Force Charlie via GitGitGadget [this message]
2020-05-08 8:33 ` [PATCH] Correctly initialize 'installed_handlers' Carlo Marcelo Arenas Belón
2020-05-08 15:36 ` Junio C Hamano
2020-05-08 17:24 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.630.git.1588921514146.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=charlieio@outlook.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.