[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>
This commit is contained in:
Junio C Hamano 2005-06-25 17:36:26 -07:00 committed by Linus Torvalds
parent a81efcba8c
commit eb41ab11e8

View 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)