diff options
author | Christopher Ferris <cferris@google.com> | 2019-02-22 12:47:23 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-02-22 12:47:23 -0800 |
commit | 503c17bae7c6fd8777b1c2e7f60bc828b709eb24 (patch) | |
tree | fb4374c3873cc3be4eab0b2587510830425d1707 | |
parent | 5e15f34c504b1b03b7c5285496e8ba4b4a4831a9 (diff) | |
download | android_bionic-503c17bae7c6fd8777b1c2e7f60bc828b709eb24.tar.gz android_bionic-503c17bae7c6fd8777b1c2e7f60bc828b709eb24.tar.bz2 android_bionic-503c17bae7c6fd8777b1c2e7f60bc828b709eb24.zip |
Fix wrong variable reference.
Bug: 125891203
Test: Verify that setting the program property to "" doesn't trigger
Test: heapprofd.
Change-Id: Id27cbb92c7a120d02151e29be993f369230c2de8
-rw-r--r-- | libc/bionic/malloc_heapprofd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/malloc_heapprofd.cpp b/libc/bionic/malloc_heapprofd.cpp index c492baccc..5129cd711 100644 --- a/libc/bionic/malloc_heapprofd.cpp +++ b/libc/bionic/malloc_heapprofd.cpp @@ -202,7 +202,7 @@ bool HeapprofdShouldLoad() { if (__system_property_get(program_property, property_value) == 0) { return false; } - return program_property[0] != '\0'; + return property_value[0] != '\0'; } void HeapprofdInstallSignalHandler() { |