diff options
author | Elliott Hughes <enh@google.com> | 2014-07-07 09:45:15 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-07-07 09:45:15 -0700 |
commit | 29edbfd64ff636b40309d350ca038a7fdb114ad8 (patch) | |
tree | 455e7fbb22c3a8622776ced938dda03feb96b732 | |
parent | 1f262b35fef5108e3bd3fbea4b6aa1ce635767f9 (diff) | |
download | android_bionic-29edbfd64ff636b40309d350ca038a7fdb114ad8.tar.gz android_bionic-29edbfd64ff636b40309d350ca038a7fdb114ad8.tar.bz2 android_bionic-29edbfd64ff636b40309d350ca038a7fdb114ad8.zip |
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
-rw-r--r-- | libc/bionic/malloc_debug_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |