diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-23 22:50:57 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-23 22:50:57 +0200 |
commit | 8d578b415ba2f9ed1e6836ba6888d1a879fd0a3d (patch) | |
tree | df79210db06baa1d8d7bea2c03299aff8d36b77c /common | |
parent | 30e436537a4917c9358d2a897481456374684a37 (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.c | 2 |
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) |