projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca055f
)
fast-import: Fix uninitialized variable
author
Simon Hausmann
<simon@lst.de>
Wed, 23 May 2007 21:00:22 +0000
(23:00 +0200)
committer
Shawn O. Pearce
<spearce@spearce.org>
Thu, 24 May 2007 03:36:47 +0000
(23:36 -0400)
Fix uninitialized last_object->no_free variable that is accessed in
store_object.
Signed-off-by: Simon Hausmann <simon@lst.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c
patch
|
blob
|
history
diff --git
a/fast-import.c
b/fast-import.c
index 3a2d5ed8e667af06f97d2559b3cffb8a01f94565..03f5ca7998a16203e72a15ee1f167fcfe8102861 100644
(file)
--- 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;