Git development
 help / color / mirror / Atom feed
From: Bruno Ribas <ribas@c3sl.ufpr.br>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>, Bruno Ribas <ribas@c3sl.ufpr.br>
Subject: [PATCH 2/2] Removed NULL check on builtin-pack-objects.c from create_delta_index() as it just checks for Out of Memory
Date: Wed,  4 Apr 2007 15:50:09 -0300	[thread overview]
Message-ID: <11757126101733-git-send-email-ribas@c3sl.ufpr.br> (raw)
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

  reply	other threads:[~2007-04-04 18:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04 18:50 [PATCH 1/2] Added use of xmalloc() on diff-delta.c Bruno Ribas
2007-04-04 18:50 ` Bruno Ribas [this message]
2007-04-04 19:22 ` Junio C Hamano
2007-04-04 22:31   ` Linus Torvalds
2007-04-05  5:14     ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11757126101733-git-send-email-ribas@c3sl.ufpr.br \
    --to=ribas@c3sl.ufpr.br \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox