]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/htable_type.h
opt: fix memory leak in tests.
[ccan] / ccan / htable / htable_type.h
index 6fe05e2fd8de9bf837451c1ba745b993e0e1c566..0d9e3fbb2dcce3ec7b183627d81fc577a3a82f24 100644 (file)
@@ -63,7 +63,7 @@ static inline type *htable_##name##_get(const struct htable_##name *ht,       \
                                        const HTABLE_KTYPE(keyof) k)    \
 {                                                                      \
        /* Typecheck for cmpfn */                                       \
-       (void)sizeof(cmpfn(keyof((const type *)NULL),                   \
+       (void)sizeof(cmpfn((const type *)NULL,                          \
                           keyof((const type *)NULL)));                 \
        return (type *)htable_get((const struct htable *)ht,            \
                                  hashfn(k),                            \