commit | 74edcea90e31a3795e58aa1b2bbe96032f0bcd61 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Jul 24 10:11:05 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Fri Jul 24 11:14:08 2015 -0700 |
tree | 1b2163806229cd03670484aad5a2d11ad1a3eed0 | |
parent | 89cc750e9b2623aae3c257ce6c72f4ffe3e1bb33 [diff] [blame] |
init: Let property_get return std::string. Bug: 22654233 Change-Id: Id6091f58432f75e966b9871256049fbe17766c10
diff --git a/init/builtins.cpp b/init/builtins.cpp index 8d47da4..e2c033a 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp
@@ -920,9 +920,8 @@ return -1; } - char prop_value[PROP_VALUE_MAX] = {0}; - property_get("ro.crypto.type", prop_value); - if (strcmp(prop_value, "file")) { + std::string prop_value = property_get("ro.crypto.type"); + if (prop_value != "file") { return 0; }