diff --git a/funcs/func_lock.c b/funcs/func_lock.c index 5d116e82c8..432292b394 100644 --- a/funcs/func_lock.c +++ b/funcs/func_lock.c @@ -153,7 +153,7 @@ static void *lock_broker(void *unused) static int null_hash_cb(const void *obj, const int flags) { - return (int)(long) obj; + return abs((int)(long) obj); } static int null_cmp_cb(void *obj, void *arg, int flags)