libctf: fix hash removal
authorNick Alcock <nick.alcock@oracle.com>
Fri, 28 Jun 2019 20:58:31 +0000 (21:58 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 1 Jul 2019 10:05:59 +0000 (11:05 +0100)
commit3e10cffc9872fda4519f76ba487fd108551a179f
treeebf8ae65007b2bedc224e920f6b0af9bc2c13513
parentc550e7ba937e6a5e04c17275efc362a74f8fd1b1
libctf: fix hash removal

We must call htab_remove_elt with an element (in this case, a mocked-up
one with only the key populated, since no reasonable hash function will
need the other fields), not with the key alone.

libctf/
* ctf-hash.c (ctf_dynhash_remove): Call with a mocked-up element.
libctf/ChangeLog
libctf/ctf-hash.c