Revert "diff-delta.c: allow delta with empty blob."
This reverts 962537a3eb
commit to
play safe.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user