Code

[PATCH] (patchlet) pack-objects.c: try_delta()
authorJunio C Hamano <junkio@cox.net>
Sun, 26 Jun 2005 00:36:26 +0000 (17:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
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 <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
pack-objects.c

index 8de7bd03444720b40fcad7c7102c989142b00c9c..68c7e592b51b2174390bf9ab17e7dec7a9841d52 100644 (file)
@@ -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)