diff options
author | Junio C Hamano <junkio@cox.net> | 2005-12-13 01:42:38 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-12-13 01:42:38 +0100 |
commit | c7a45bd20e4ec141fdc15f36d261a45d51d95693 (patch) | |
tree | 906269c34cada1b3028d3f4013bae3a595d20625 /diff-delta.c | |
parent | Everyday: some examples. (diff) | |
download | git-c7a45bd20e4ec141fdc15f36d261a45d51d95693.tar.xz git-c7a45bd20e4ec141fdc15f36d261a45d51d95693.zip |
Revert "diff-delta.c: allow delta with empty blob."
This reverts 962537a3eb03a118cf27d9d0da365a3216ed1caa commit to
play safe.
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 cf5013896f..b2ae7b5e6c 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -213,7 +213,7 @@ void *diff_delta(void *from_buf, unsigned long from_size, bdrecord_t *brec; bdfile_t bdf; - if (delta_prepare(from_buf, from_size, &bdf)) + if (!from_size || !to_size || delta_prepare(from_buf, from_size, &bdf)) return NULL; outpos = 0; |