Change-Id: Ib8871c2e103d4e1d3995ba39f3f4e5a011e7283d
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
static int __appinfo_cb(pkgmgrinfo_appinfo_h handle, void *user_data)
{
+ int ret;
char **appid = (char **)user_data;
+ char *val;
+
+ ret = pkgmgrinfo_appinfo_get_appid(handle, &val);
+ if (ret != PMINFO_R_OK)
+ return ret;
- return pkgmgrinfo_appinfo_get_appid(handle, appid);
+ *appid = strdup(val);
+
+ return 0;
}
static char *__get_app_info_from_db_by_apppath(const char *apppath, uid_t uid)