From: Junio C Hamano Date: Sun, 26 Jun 2005 00:36:26 +0000 (-0700) Subject: [PATCH] (patchlet) pack-objects.c: try_delta() X-Git-Tag: v0.99~177 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb41ab11e8eaa1bd71a4413d71583d72dd181b33;p=git.git [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 --- 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)