diff options
Diffstat (limited to 'src/common/ht.h')
-rw-r--r-- | src/common/ht.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ht.h b/src/common/ht.h index 2ad46a3877..63629c3ac6 100644 --- a/src/common/ht.h +++ b/src/common/ht.h @@ -80,7 +80,7 @@ ht_string_hash(const char *s) #define _HT_SET_HASH(elm, field, hashfn) \ do { \ - elm->field.hte_hash = hashfn(elm); \ + (elm)->field.hte_hash = hashfn(elm); \ } while (0) #define HT_FOREACH(x, name, head) \ |