hashtable-based objects: minimum fixups.
authorJunio C Hamano <junkio@cox.net>
Sun, 12 Feb 2006 02:51:19 +0000 (18:51 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 12 Feb 2006 13:12:39 +0000 (05:12 -0800)
commit2b796360acbdf3186ab9a5dcb84fe416eda4ffd5
tree69299088522856a61ccab7d07eabf3f6c6ce4bd6
parent070879ca93a7d358086f4c8aff4553493dcb9210
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>
object.c