diff options
author | Junio C Hamano <junkio@cox.net> | 2005-06-26 04:36:26 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 05:12:07 +0400 |
commit | eb41ab11e8eaa1bd71a4413d71583d72dd181b33 (patch) | |
tree | f4c297f428a4a80bab59c2970afc9095798c316e | |
parent | a81efcba8cc9b55daf19bf0f2ae2058db1d25d31 (diff) |
[PATCH] (patchlet) pack-objects.c: try_delta()
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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | pack-objects.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-objects.c b/pack-objects.c index 8de7bd0344..68c7e592b5 100644 --- 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) |