diff options
Diffstat (limited to 'libctf/ctf-hash.c')
-rw-r--r-- | libctf/ctf-hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libctf/ctf-hash.c b/libctf/ctf-hash.c index adfe93e..03a398e 100644 --- a/libctf/ctf-hash.c +++ b/libctf/ctf-hash.c @@ -176,7 +176,8 @@ ctf_dynhash_insert (ctf_dynhash_t *hp, void *key, void *value) void ctf_dynhash_remove (ctf_dynhash_t *hp, const void *key) { - htab_remove_elt (hp->htab, (void *) key); + ctf_helem_t hep = { (void *) key, NULL, NULL, NULL }; + htab_remove_elt (hp->htab, &hep); } void * |