diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-11-26 00:42:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-11-26 00:42:25 +0000 |
commit | 72cb64406a5b0d64a27340ced604b99019067c36 (patch) | |
tree | 4b9fc08a20d29798756e5b86fd616cf61aa7177c /src/common/ht.h | |
parent | fe221f3dff3fa1c79213f04261e4c7a70576b619 (diff) | |
download | tor-72cb64406a5b0d64a27340ced604b99019067c36.tar.gz tor-72cb64406a5b0d64a27340ced604b99019067c36.zip |
HT_NEXT invalidates the last iterator; fix rmv-related segfault.
svn:r5458
Diffstat (limited to 'src/common/ht.h')
-rw-r--r-- | src/common/ht.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/ht.h b/src/common/ht.h index 54b451613a..410fcd3b81 100644 --- a/src/common/ht.h +++ b/src/common/ht.h @@ -215,7 +215,7 @@ ht_string_hash(const char *s) static __inline struct type ** \ name##_HT_START(struct name *head) \ { \ - unsigned b = 0; \ + unsigned b = 0; \ while (b < head->hth_table_length) { \ if (head->hth_table[b]) \ return &head->hth_table[b]; \ @@ -262,7 +262,6 @@ ht_string_hash(const char *s) } \ } - #if 0 /* Helpers for an iterator type that saves some mod operations at the expense * of many branches. Not worth it, it seems. */ |