aboutsummaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-06-25 17:36:26 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 18:12:07 -0700
commiteb41ab11e8eaa1bd71a4413d71583d72dd181b33 (patch)
treef4c297f428a4a80bab59c2970afc9095798c316e /pack-objects.c
parenta81efcba8cc9b55daf19bf0f2ae2058db1d25d31 (diff)
downloadgit-eb41ab11e8eaa1bd71a4413d71583d72dd181b33.tar.gz
git-eb41ab11e8eaa1bd71a4413d71583d72dd181b33.tar.xz
[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>
Diffstat (limited to 'pack-objects.c')
-rw-r--r--pack-objects.c1
1 files changed, 1 insertions, 0 deletions
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)