summaryrefslogtreecommitdiff
path: root/init/action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init/action.cpp')
-rw-r--r--init/action.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/init/action.cpp b/init/action.cpp
index 1a66eee4a6..69e40d07fd 100644
--- a/init/action.cpp
+++ b/init/action.cpp
@@ -195,10 +195,11 @@ bool Action::CheckPropertyTriggers(const std::string& name,
found = true;
}
} else {
- std::string prop_val = android::base::GetProperty(trigger_name, "");
- if (prop_val.empty() || (trigger_value != "*" && trigger_value != prop_val)) {
- return false;
+ std::string prop_value = android::base::GetProperty(trigger_name, "");
+ if (trigger_value == "*" && !prop_value.empty()) {
+ continue;
}
+ if (trigger_value != prop_value) return false;
}
}
return found;