author | Andre Noll <maan@systemlinux.org> | |
Wed, 21 Jun 2006 02:46:05 +0000 (04:46 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 21 Jun 2006 10:56:00 +0000 (03:56 -0700) | ||
commit | 86f660b1f1dc207897281a77f969a56b2e551374 | |
tree | f56cf9718b70af684c6f6b5a389c8a18eed75448 | tree | snapshot |
parent | bb9e15a83c425ff31e4da6b004bd4557d528b755 | commit | diff |
object-refs: avoid division by zero
Currently, we don't check refs_hash_size size and happily call
lookup_object_refs() even if refs_hash_size is zero which leads to
a division by zero in hash_obj().
Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Currently, we don't check refs_hash_size size and happily call
lookup_object_refs() even if refs_hash_size is zero which leads to
a division by zero in hash_obj().
Signed-off-by: Andre Noll <maan@systemlinux.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
object-refs.c | diff | blob | history |