* [PATCH] fast-import: Fix uninitialized variable
@ 2007-05-23 21:00 Simon Hausmann
0 siblings, 0 replies; only message in thread
From: Simon Hausmann @ 2007-05-23 21:00 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
Fix uninitialized last_object->no_free variable that is accessed in
store_object.
Signed-off-by: Simon Hausmann <simon@lst.de>
---
fast-import.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index ffa00fd..0ddf8fe 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -1122,6 +1122,7 @@ static void store_tree(struct tree_entry *root)
|| le->pack_id != pack_id) {
lo.data = NULL;
lo.depth = 0;
+ lo.no_free = 0;
} else {
mktree(t, 0, &lo.len, &old_tree);
lo.data = old_tree.buffer;
--
1.5.2.24.g93d4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-23 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 21:00 [PATCH] fast-import: Fix uninitialized variable Simon Hausmann
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.