diff --git a/src/common/ht.h b/src/common/ht.h index 53c06d890e..54b030b047 100644 --- a/src/common/ht.h +++ b/src/common/ht.h @@ -418,6 +418,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); \ }