diff options
author | Colin Watson <cjwatson@debian.org> | 2022-10-02 17:24:02 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2022-10-02 17:24:02 +0100 |
commit | 9803735ffb3f4c347cf0f2f9b14a90308cf4fe4a (patch) | |
tree | 557e3639a39909e21ccc36447f266d5c23b43ffe /libdb | |
parent | 7bf5b391743f8d830b25f5598cbe8a0aa49aae46 (diff) |
Fix harmless but incorrect cast
* libdb/db_xdbm.c (man_xdbm_firstkey): Cast `gl_list_free` to
`gl_mapvalue_dispose_fn`, not `gl_listelement_dispose_fn`. (These were
in practice identical but are semantically distinct.)
Diffstat (limited to 'libdb')
-rw-r--r-- | libdb/db_xdbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdb/db_xdbm.c b/libdb/db_xdbm.c index 14a70e2c..ed6c027a 100644 --- a/libdb/db_xdbm.c +++ b/libdb/db_xdbm.c @@ -119,7 +119,7 @@ datum man_xdbm_firstkey (MYDBM_FILE dbf, if (!parent_keys) { parent_keys = new_string_map (GL_HASH_MAP, - (gl_listelement_dispose_fn) + (gl_mapvalue_dispose_fn) gl_list_free); push_cleanup ((cleanup_fun) gl_map_free, parent_keys, 0); } |