]> granicus.if.org Git - libevent/commitdiff
ht-internal: don't reset hth_table_length explicitly in name_##HT_CLEAR
authorAzat Khuzhin <a3at.mail@gmail.com>
Thu, 8 Jan 2015 01:43:37 +0000 (04:43 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Thu, 8 Jan 2015 01:43:37 +0000 (04:43 +0300)
name_##HT_CLEAR calls name_##HT_INIT that reset hth_table_length to 0.

ht-internal.h

index 8842f4cd75b24706ca4293384710e332f202bba2..50375bbaa94c0b3ae2610cfafc64a283550c46dc 100644 (file)
@@ -380,7 +380,6 @@ ht_string_hash_(const char *s)
   {                                                                     \
     if (head->hth_table)                                                \
       freefn(head->hth_table);                                          \
-    head->hth_table_length = 0;                                         \
     name##_HT_INIT(head);                                               \
   }                                                                     \
   /* Debugging helper: return false iff the representation of 'head' is \