From 29edbfd64ff636b40309d350ca038a7fdb114ad8 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 7 Jul 2014 09:45:15 -0700 Subject: [PATCH] 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 --- libc/bionic/malloc_debug_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/bionic/malloc_debug_common.cpp b/libc/bionic/malloc_debug_common.cpp index cbca160eb..9399237fb 100644 --- a/libc/bionic/malloc_debug_common.cpp +++ b/libc/bionic/malloc_debug_common.cpp @@ -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; }