projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.24.0
[platform/upstream/git.git]
/
diff-delta.c
diff --git
a/diff-delta.c
b/diff-delta.c
index
e496433
..
77fea08
100644
(file)
--- a/
diff-delta.c
+++ b/
diff-delta.c
@@
-326,6
+326,8
@@
create_delta(const struct delta_index *index,
const unsigned char *ref_data, *ref_top, *data, *top;
unsigned char *out;
+ *delta_size = 0;
+
if (!trg_buf || !trg_size)
return NULL;