Fix defects detected by static analysis tool 40/217940/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 18 Nov 2019 02:19:36 +0000 (11:19 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 18 Nov 2019 02:36:06 +0000 (11:36 +0900)
Change-Id: Ic5c1e6a0068ad243476f62b016131a9e0c5b9e1f

src/multi_assistant_service.c

index 94b2fb4..96ff563 100644 (file)
@@ -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 ());