author | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 02:51:19 +0000 (18:51 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 12 Feb 2006 13:12:39 +0000 (05:12 -0800) | ||
commit | 2b796360acbdf3186ab9a5dcb84fe416eda4ffd5 | |
tree | 69299088522856a61ccab7d07eabf3f6c6ce4bd6 | tree | snapshot |
parent | 070879ca93a7d358086f4c8aff4553493dcb9210 | commit | diff |
hashtable-based objects: minimum fixups.
Calling hashtable_index from find_object before objs is created
would result in division by zero failure. Avoid it.
Also the given object name may not be aligned suitably for
unsigned int; avoid dereferencing casted pointer.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Calling hashtable_index from find_object before objs is created
would result in division by zero failure. Avoid it.
Also the given object name may not be aligned suitably for
unsigned int; avoid dereferencing casted pointer.
Signed-off-by: Junio C Hamano <junkio@cox.net>
object.c | diff | blob | history |