diff options
author | Jonas Fonseca <fonseca@diku.dk> | 2006-08-26 16:16:18 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-26 17:54:06 -0700 |
commit | 83572c1a914d3f7a8dd66d954c11bbc665b7b923 (patch) | |
tree | bae4dc57d36b83c835253498dfdabd29d4dec66e /diff-delta.c | |
parent | 095c424d08d96a5f9ee3ca53ae952e92c5cff99b (diff) | |
download | git-83572c1a914d3f7a8dd66d954c11bbc665b7b923.tar.gz git-83572c1a914d3f7a8dd66d954c11bbc665b7b923.tar.xz |
Use xrealloc instead of realloc
Change places that use realloc, without a proper error path, to instead use
xrealloc. Drop an erroneous error path in the daemon code that used errno
in the die message in favour of the simpler xrealloc.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-delta.c')
-rw-r--r-- | diff-delta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-delta.c b/diff-delta.c index 51e2e5617..fa16d06c8 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -392,7 +392,7 @@ create_delta(const struct delta_index *index, outsize = max_size + MAX_OP_SIZE + 1; if (max_size && outpos > max_size) break; - out = realloc(out, outsize); + out = xrealloc(out, outsize); if (!out) { free(tmp); return NULL; |