summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/app_launcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/app_launcher.c b/tool/app_launcher.c
index bfadcda6..ad2e7b2b 100644
--- a/tool/app_launcher.c
+++ b/tool/app_launcher.c
@@ -503,8 +503,8 @@ static int __set_appinfo_for_launchpad(bundle *kb, const char *appid, uid_t uid)
if (ret != PMINFO_R_OK)
goto end;
- if (!component_type || (!strcmp(component_type, APP_TYPE_SERVICE) &&
- !strcmp(component_type, APP_TYPE_UI))) {
+ if (!component_type || (strcmp(component_type, APP_TYPE_SERVICE) != 0 &&
+ strcmp(component_type, APP_TYPE_UI) != 0)) {
ret = -1;
goto end;
}