git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a81efcb
)
[PATCH] (patchlet) pack-objects.c: try_delta()
author
Junio C Hamano
<redacted>
Sun, 26 Jun 2005 00:36:26 +0000
(17:36 -0700)
committer
Linus Torvalds
<redacted>
Sun, 26 Jun 2005 01:12:07 +0000
(18:12 -0700)
Return value of try_delta is checked for negativeness, but the
success path does not return anything, letting compiler warn and
presumably return garbage.
Signed-off-by: Junio C Hamano <redacted>
Signed-off-by: Linus Torvalds <redacted>
pack-objects.c
patch
|
blob
|
history
diff --git
a/pack-objects.c
b/pack-objects.c
index 8de7bd03444720b40fcad7c7102c989142b00c9c..68c7e592b51b2174390bf9ab17e7dec7a9841d52 100644
(file)
--- a/
pack-objects.c
+++ b/
pack-objects.c
@@
-321,6
+321,7
@@
static int try_delta(struct unpacked *cur, struct unpacked *old)
}
}
free(delta_buf);
+ return 0;
}
static void find_deltas(struct object_entry **list, int window)
git clone https://git.99rst.org/PROJECT