[PATCH 3/7] Ensure packed_git.next is initialized to NULL.
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Dec 24, 2006, 05:46 UTC
- Message-ID
- <20061224054604.GC8146@spearce.org>
- In-Reply-To
- <487c7d0ea81f2f82f330e277e0aea38a66ca7cfe.1166939109.git.spearce@spearce.org>
Junio noticed while reviewing this patch series that I removed the initialization of packed_git.next = NULL in 88078baa. That removal was not intended so I'm restoring the initialization where necessary.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org> --- sha1_file.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c index 1a87f95..8de8ce0 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -676,6 +676,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local) p->index_size = idx_size; p->pack_size = st.st_size; p->index_base = idx_map; + p->next = NULL; p->windows = NULL; p->pack_fd = -1; p->pack_local = local; @@ -707,6 +708,7 @@ struct packed_git *parse_pack_index_file(const unsigned char *sha1, char *idx_pa p->index_size = idx_size; p->pack_size = 0; p->index_base = idx_map; + p->next = NULL; p->windows = NULL; p->pack_fd = -1; hashcpy(p->sha1, sha1);
-- 1.4.4.3.g2e63