threads / patch / 2622

patchGIT: fix compilation error in pack-redundant.c

Subject: [PATCH] GIT: fix compilation error in pack-redundant.c

## tl;dr

One message between Nov 21, 2005 and Nov 21, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

YOSHIFUJI Hideaki / 吉藤英明· Nov 21, 2005, 05:09 UTC · lore
Hello.
Fix compilation error in pack-redundant.c.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Show changes to pack-redundant.c +1 −1
diff --git a/pack-redundant.c b/pack-redundant.c
index fb6cb48..954dc55 100644
--- a/pack-redundant.c
+++ b/pack-redundant.c
@@ -376,11 +376,11 @@ size_t sizeof_union(struct packed_git *p
 size_t get_pack_redundancy(struct pack_list *pl)
 {
 	struct pack_list *subset;
+	size_t ret = 0;
 
 	if (pl == NULL)
 		return 0;
 
-	size_t ret = 0;
 	while ((subset = pl->next)) {
 		while(subset) {
 			ret += sizeof_union(pl->pack, subset->pack);
-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

← back to recent threads