From: Michael Coleman <tutufan@gmail.com>
To: git@vger.kernel.org
Cc: Michael Coleman <tutufan@gmail.com>
Subject: [PATCH] fix uninitialized use of msg buffer
Date: Sat, 3 Feb 2007 10:49:23 -0600 [thread overview]
Message-ID: <11705213662728-git-send-email-tutufan@gmail.com> (raw)
In-Reply-To: <11705213633209-git-send-email-tutufan@gmail.com>
---
builtin-branch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-branch.c b/builtin-branch.c
index d60690b..ac64b99 100644
--- a/builtin-branch.c
+++ b/builtin-branch.c
@@ -315,7 +315,7 @@ static void create_branch(const char *name, const char *start_name,
struct ref_lock *lock;
struct commit *commit;
unsigned char sha1[20];
- char ref[PATH_MAX], msg[PATH_MAX + 20];
+ char ref[PATH_MAX], msg[PATH_MAX + 20] = { 0 };
snprintf(ref, sizeof ref, "refs/heads/%s", name);
if (check_ref_format(ref))
--
1.5.0.rc3
next prev parent reply other threads:[~2007-02-03 16:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-03 16:49 [PATCH] fix use of sometimes uninitialized variable 'msg' Michael Coleman
2007-02-03 16:49 ` Michael Coleman [this message]
2007-02-03 18:17 ` [PATCH] builtin-branch: be prepared for ref-logging Lars Hjemli
2007-02-03 18:55 ` Junio C Hamano
2007-02-03 18:35 ` Lars Hjemli
2007-02-03 19:50 ` Junio C Hamano
2007-02-03 20:38 ` Lars Hjemli
2007-02-03 20:54 ` Junio C Hamano
2007-02-03 21:20 ` Lars Hjemli
2007-02-03 23:21 ` Junio C Hamano
2007-02-03 17:05 ` [PATCH] fix use of sometimes uninitialized variable 'msg' Mike Coleman
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=11705213662728-git-send-email-tutufan@gmail.com \
--to=tutufan@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).