aboutsummaryrefslogtreecommitdiff
path: root/libc/bionic/sysprop_helpers.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-17 23:06:12 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-08-17 23:06:12 +0000
commit5630078b73dbd1ecce85868ca9766f64709f3354 (patch)
tree309bf4d1501443a20c23936ac0029e0a5bd84fae /libc/bionic/sysprop_helpers.cpp
parentf07b0e0951c69eb5acac7c90ff8070c6f19e5daf (diff)
parent23f0befcc2aecabb5fbfd1b2159389eefc9d4018 (diff)
Snap for 8961426 from 23f0befcc2aecabb5fbfd1b2159389eefc9d4018 to tm-qpr1-release
Change-Id: Ibdbfcfa964f1ef64f3e1be4c8be1359a2021f769
Diffstat (limited to 'libc/bionic/sysprop_helpers.cpp')
-rw-r--r--libc/bionic/sysprop_helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/sysprop_helpers.cpp b/libc/bionic/sysprop_helpers.cpp
index edae6cc84..10da3efc2 100644
--- a/libc/bionic/sysprop_helpers.cpp
+++ b/libc/bionic/sysprop_helpers.cpp
@@ -53,7 +53,7 @@ static bool get_property_value(const char* property_name, char* dest, size_t des
strncpy(cb_cookie->dest, value, cb_cookie->size);
},
&cb_cookie);
- if (*dest != '\0' && *dest != '0') return true;
+ if (*dest != '\0') return true;
return false;
}