summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a81efcb)
raw | patch | inline | side by side (parent: a81efcb)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 26 Jun 2005 00:36:26 +0000 (17:36 -0700) | ||
committer | Linus 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>
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 | patch | blob | history |
diff --git a/pack-objects.c b/pack-objects.c
index 8de7bd03444720b40fcad7c7102c989142b00c9c..68c7e592b51b2174390bf9ab17e7dec7a9841d52 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
}
}
free(delta_buf);
+ return 0;
}
static void find_deltas(struct object_entry **list, int window)