summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e0a9110)
raw | patch | inline | side by side (parent: e0a9110)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Mon, 14 Jun 2010 23:40:05 +0000 (23:40 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Jun 2010 14:50:39 +0000 (07:50 -0700) |
Sun Studio 12 Update 1 thinks that *t could be uninitialized,
ostensibly because it doesn't take rewrite_cmd into account in its
static analysis.
builtin/notes.c: In function `notes_copy_from_stdin':
builtin/notes.c:419: warning: 't' might be used uninitialized in this function
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ostensibly because it doesn't take rewrite_cmd into account in its
static analysis.
builtin/notes.c: In function `notes_copy_from_stdin':
builtin/notes.c:419: warning: 't' might be used uninitialized in this function
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c | patch | blob | history |
diff --git a/builtin/notes.c b/builtin/notes.c
index 52b72fca687d42dc09d1d79a8e76584a55c0c546..26617546c8cadac493f06473d02f27f320713b28 100644 (file)
--- a/builtin/notes.c
+++ b/builtin/notes.c
{
struct strbuf buf = STRBUF_INIT;
struct notes_rewrite_cfg *c = NULL;
- struct notes_tree *t;
+ struct notes_tree *t = NULL;
int ret = 0;
if (rewrite_cmd) {