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

[PATCH 1/1] fixup! upload-pack: refactor reading of pack-objects out

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Feb 24, 2019, 22:12 UTC
Message-ID
<5fa4fcad63e18dd9d840217eb8cf3dab8f69bc1b.1551046329.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.139.git.gitgitgadget@gmail.com>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
This fixes an issue pointed out by clang.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 upload-pack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/upload-pack.c b/upload-pack.c
index 2365b707bc..534e8951a2 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -179,7 +179,7 @@ static void create_pack_file(const struct object_array *have_obj,
 			     const struct string_list *uri_protocols)
 {
 	struct child_process pack_objects = CHILD_PROCESS_INIT;
-	struct output_state output_state = {0};
+	struct output_state output_state = {"\0"};
 	char progress[128];
 	char abort_msg[] = "aborting due to possible repository "
 		"corruption on the remote side.";
-- 
gitgitgadget
Previous: Johannes Schindelin via GitGitGadgetNext: Junio C Hamano
Message 2 of 5 in “jt/fetch-cdn-offload: fix build with clang”
  1. 0/1 jt/fetch-cdn-offload: fix build with clangJohannes Schindelin via GitGitGadget, Feb 24, 2019
  2. 1/1 fixup! upload-pack: refactor reading of pack-objects outJohannes Schindelin via GitGitGadget, Feb 24, 2019
  3. Junio C HamanoMar 3, 2019
  4. Johannes SchindelinMar 3, 2019
  5. Johannes SchindelinMar 11, 2019

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.