hashtbl: make hash_iterate() not crash on an uninitalized table
commiteac7892834d5060030133a22edae6b3ee68c76d8
authorH. Peter Anvin <hpa@zytor.com>
Sat, 27 Jun 2009 22:54:25 +0000 (27 15:54 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 27 Jun 2009 22:54:25 +0000 (27 15:54 -0700)
treed7d0e0055bd84de191ab9d5cad3b6227da001c20
parentf7a9ecaffad2b8dea7171ebac16fe9703d1b58e1
hashtbl: make hash_iterate() not crash on an uninitalized table

Trying to walk an uninitialized table (->table == NULL) should just
return nothing.  This can happen due when pp_cleanup() is called after
a failure.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
hashtbl.c