From a329e2482b363b5986482a876cddbcf83ab8f16d Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Mon, 18 Nov 2019 11:19:36 +0900 Subject: [PATCH] Fix defects detected by static analysis tool Change-Id: Ic5c1e6a0068ad243476f62b016131a9e0c5b9e1f --- src/multi_assistant_service.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/multi_assistant_service.c b/src/multi_assistant_service.c index 94b2fb4..96ff563 100644 --- a/src/multi_assistant_service.c +++ b/src/multi_assistant_service.c @@ -761,6 +761,7 @@ static int deinit_plugin(void) if (0 != multi_assistant_service_plugin_deinitialize()) { MAS_LOGE("Fail to deinitialize"); } + return 0; } static int process_activated_setting() @@ -1329,6 +1330,7 @@ static void _package_manager_event_cb(const char *type, const char *package, pac if (ret != PMINFO_R_OK || NULL == handle) { LOGW("Failed to call pkgmgrinfo_pkginfo_get_pkginfo & get_usr_pkginfo(\"%s\",~) returned %d, uid : %d", package, ret, getuid ()); /* Try to get in user packages */ + user = true; ret = pkgmgrinfo_pkginfo_get_usr_pkginfo (package, uid, &handle); if (ret != PMINFO_R_OK || NULL == handle) { LOGW("Failed to call pkgmgrinfo_pkginfo_get_pkginfo & get_usr_pkginfo(\"%s\",~) returned %d, uid : %d", package, ret, getuid ()); -- 2.7.4