Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-04-23 22:50:57 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-04-23 22:50:57 +0200
commit8d578b415ba2f9ed1e6836ba6888d1a879fd0a3d (patch)
treedf79210db06baa1d8d7bea2c03299aff8d36b77c /common
parent30e436537a4917c9358d2a897481456374684a37 (diff)
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
Diffstat (limited to 'common')
-rw-r--r--common/dict.c2
1 files changed, 1 insertions, 1 deletions
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)