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

[PATCH] unpack-trees: avoid dead store for struct progress

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Oct 18, 2018, 18:46 UTC
Message-ID
<20181018184604.22840-1-carenas@gmail.com>
it is unconditionally initialized a few lines below
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 unpack-trees.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unpack-trees.c b/unpack-trees.c
index f25089b878..88dc9a615e 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -340,7 +340,7 @@ static int check_updates(struct unpack_trees_options *o)
 {
 	unsigned cnt = 0;
 	int errs = 0;
-	struct progress *progress = NULL;
+	struct progress *progress;
 	struct index_state *index = &o->result;
 	struct checkout state = CHECKOUT_INIT;
 	int i;
-- 
2.19.1
Message 1 of 1 in “unpack-trees: avoid dead store for struct progress”
  1. unpack-trees: avoid dead store for struct progressCarlo Marcelo Arenas Belón, Oct 18, 2018

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.