From eb41ab11e8eaa1bd71a4413d71583d72dd181b33 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 25 Jun 2005 17:36:26 -0700 Subject: [PATCH] [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 Signed-off-by: Linus Torvalds --- pack-objects.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pack-objects.c b/pack-objects.c index 8de7bd034..68c7e592b 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) -- 2.26.2