ret = pkgmgrinfo_appinfo_get_appinfo( appid, &handle);
if (ret != PMINFO_R_OK){
ret = pkgmgrinfo_appinfo_get_appinfo_user(appid , caller_uid , &handle);
+ if (ret != PMINFO_R_OK){
+ _E("appid is not found in DB %s", appid);
+ return NULL;
+ }
}
res = calloc(1, sizeof(*res));
if (!res) {
_E("create appinfo: %s", strerror(errno));
- return -1;
+ return NULL;
}
memset(res, 0, sizeof(struct appinfo));
if (!res->val[_AI_FILE]) {
_E("create appinfo: %s", strerror(errno));
_free_appinfo(res);
- return -1;
+ return NULL;
}
res->val[_AI_NAME] = strdup(appid); //TODO :