diff --git a/src/common/ht.h b/src/common/ht.h index 762f836bd3..0aefc6dc0b 100644 --- a/src/common/ht.h +++ b/src/common/ht.h @@ -420,6 +420,7 @@ ht_string_hash(const char *s) #define _HT_FOI_INSERT(field, head, elm, newent, var) \ { \ newent->field.hte_hash = (elm)->field.hte_hash; \ + newent->field.hte_next = NULL; \ *var = newent; \ ++((head)->hth_n_entries); \ }