summaryrefslogtreecommitdiff
path: root/libs/libapexutil/apexutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libapexutil/apexutil.cpp')
-rw-r--r--libs/libapexutil/apexutil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/libapexutil/apexutil.cpp b/libs/libapexutil/apexutil.cpp
index 948bd86..e0b0787 100644
--- a/libs/libapexutil/apexutil.cpp
+++ b/libs/libapexutil/apexutil.cpp
@@ -69,7 +69,7 @@ GetActivePackages(const std::string &apex_root) {
continue;
std::string apex_path = apex_root + "/" + entry->d_name;
auto manifest = ParseApexManifest(apex_path + "/apex_manifest.pb");
- if (manifest) {
+ if (manifest.ok()) {
apexes.emplace(std::move(apex_path), std::move(*manifest));
} else {
LOG(WARNING) << manifest.error();
@@ -79,4 +79,4 @@ GetActivePackages(const std::string &apex_root) {
}
} // namespace apex
-} // namespace android \ No newline at end of file
+} // namespace android