git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date
Nov 21, 2005, 05:09 UTC
Message-ID
<20051121.140958.91408363.yoshfuji@linux-ipv6.org>
Hello.
Fix compilation error in pack-redundant.c.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
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
Message 1 of 1 in “GIT: fix compilation error in pack-redundant.c”
  1. GIT: fix compilation error in pack-redundant.cYOSHIFUJI Hideaki / 吉藤英明, Nov 21, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.