Fix a broken boolean test found by clang.

This was only on the failure case, so this probably never caused
any real trouble.

Change-Id: Id983689772102cbb9171693b927e544fb0b584fb
This commit is contained in:
Elliott Hughes 2014-07-07 09:45:15 -07:00
parent 1f262b35fe
commit 29edbfd64f

View File

@ -408,7 +408,7 @@ static void malloc_init_impl() {
dlclose(malloc_impl_handle);
return;
}
if (malloc_debug_initialize(&g_hash_table) == -1) {
if (!malloc_debug_initialize(&g_hash_table)) {
dlclose(malloc_impl_handle);
return;
}