diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2017-09-27 14:16:04 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2017-09-28 07:33:42 +0900 |
commit | 06b8456ba09d41c82a3a5c9661340e88872d756d (patch) | |
tree | 1a9fd27a9f9e1388e151902633f869b7d5ee745a /tool | |
parent | bf97ef2897f7b5b66982ec597ded07ab8fefbe29 (diff) | |
download | aul-1-06b8456ba09d41c82a3a5c9661340e88872d756d.tar.gz aul-1-06b8456ba09d41c82a3a5c9661340e88872d756d.tar.bz2 aul-1-06b8456ba09d41c82a3a5c9661340e88872d756d.zip |
Fix static analysis issue
This patch fixes the following cases:
- Resource leak
- Unchecked return value from library
- Logically dead code
- Unused value
- Explicit null dereferenced
- Double close
- Dereference before null check
- Out-of-bounds access
- Integer overflowed argument
Change-Id: Ic66241d312f15dc4f0dfba3b363e9bc57dd841ad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Diffstat (limited to 'tool')
-rw-r--r-- | tool/app_launcher.c | 4 |
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; } |