From 8d578b415ba2f9ed1e6836ba6888d1a879fd0a3d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 23 Apr 2008 20:50:57 +0000 Subject: fix problem where first item in the hashtable could be returned twice while looping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@694 ef36b2f9-881f-0410-afb5-c4e39611909c --- common/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/dict.c b/common/dict.c index 48712a7..b2a6ab2 100644 --- a/common/dict.c +++ b/common/dict.c @@ -244,7 +244,7 @@ int dict_put(DICT *dict,const char *key,void *value) void dict_loop_first(DICT *dict) { dict->loop_idx=0; - dict->loop_entry=dict->table[dict->loop_idx]; + dict->loop_entry=NULL; } const char *dict_loop_next(DICT *dict,const char **key,void **value) -- cgit v1.2.3