Skip to content

hash: fix incompatible function pointer cast

Sertonix requested to merge sertonix/apk-tools:func-incompatible into master

The code was casting a void(*)(struct apk_name *) function to void(*)(void *) and then to int(*)(void *, void *) and called it. This worked with luck and a hacky ctx != NULL check but it is undefined behaviour [citation needed].

Merge request reports

Loading