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

[PATCH 2/2] Fix variable initialization in insert_packed_refs().

From
Richard Weinberger <richard@nod.at>
Date
Jan 14, 2010, 23:29 UTC
Message-ID
<201001150029.01486.richard@nod.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
---
 transport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/transport.c b/transport.c
index 3b489b3..ecc20a1 100644
--- a/transport.c
+++ b/transport.c
@@ -102,7 +102,7 @@ static void insert_packed_refs(const char *packed_refs, 
struct ref **list)
 		return;
 
 	for (;;) {
-		int cmp = cmp, len;
+		int cmp, len;
 
 		if (!fgets(buffer, sizeof(buffer), f)) {
 			fclose(f);
-- 
1.6.5.7
Next: Johannes Sixt
Message 1 of 3 in “Fix variable initialization in insert_packed_refs().”
  1. 2/2 Fix variable initialization in insert_packed_refs().Richard Weinberger, Jan 14, 2010
  2. Johannes SixtJan 15, 2010
  3. Richard WeinbergerJan 15, 2010

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.