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

[PATCH 2/2] Removed NULL check on builtin-pack-objects.c from create_delta_index() as it just checks for Out of Memory

From
BRBruno Ribas <ribas@c3sl.ufpr.br>
Date
Apr 4, 2007, 18:50 UTC
Message-ID
<11757126101733-git-send-email-ribas@c3sl.ufpr.br>
In-Reply-To
<11757126093105-git-send-email-ribas@c3sl.ufpr.br>
Signed-off-by: Bruno Ribas <ribas@c3sl.ufpr.br>
---
 builtin-pack-objects.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index b5f9648..04a4abc 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1254,8 +1254,6 @@ static int try_delta(struct unpacked *trg, struct unpacked *src,
 	}
 	if (!src->index) {
 		src->index = create_delta_index(src->data, src_size);
-		if (!src->index)
-			die("out of memory");
 	}
 
 	delta_buf = create_delta(src->index, trg->data, trg_size, &delta_size, max_size);
-- 
1.5.0.3
Previous: Bruno RibasNext: Junio C Hamano
Message 2 of 5 in “Added use of xmalloc() on diff-delta.c”
  1. 1/2 Added use of xmalloc() on diff-delta.cBruno Ribas, Apr 4, 2007
  2. 2/2 Removed NULL check on builtin-pack-objects.c from create_delta_index() as it just checks for Out of MemoryBruno Ribas, Apr 4, 2007
  3. Junio C HamanoApr 4, 2007
  4. Linus TorvaldsApr 4, 2007
  5. Junio C HamanoApr 5, 2007

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.