typedef enum _pkgmgrinfo_appinfo_filter_prop_int {
/*Currently No Fields*/
E_PMINFO_APPINFO_PROP_APP_MIN_INT = 601,
- E_PMINFO_APPINFO_PROP_APP_DISABLE_FOR_USER,
+ E_PMINFO_APPINFO_PROP_APP_DISABLE_FOR_USER = E_PMINFO_APPINFO_PROP_APP_MIN_INT,
E_PMINFO_APPINFO_PROP_APP_MAX_INT = E_PMINFO_APPINFO_PROP_APP_DISABLE_FOR_USER
} pkgmgrinfo_appinfo_filter_prop_int;
if (strcasestr(md->key, "operation_effect=")) {
operation = index(md->key, '=');
- if ((operation + 1) != NULL)
+ if (operation[1] != '\0')
operation++;
else
operation = NULL;
while (token != NULL) {
if (strcasestr(token, "portrait-effectimage=")) {
portraitimg = index(token, '=');
- if ((portraitimg + 1) != NULL)
+ if (portraitimg[1] != '\0')
portraitimg++;
else
portraitimg = NULL;
} else if (strcasestr(token, "landscape-effectimage=")) {
landscapeimg = index(token, '=');
- if ((landscapeimg + 1) != NULL)
+ if (landscapeimg[1] != '\0')
landscapeimg++;
else
landscapeimg = NULL;
} else if (strcasestr(token, "indicatordisplay=")) {
indicatordisplay = index(token, '=');
- if ((indicatordisplay + 1) != NULL)
+ if (indicatordisplay[1] != '\0')
indicatordisplay++;
else
indicatordisplay = "true";
/*Start constructing query*/
query = sqlite3_mprintf("select * from package_app_data_control where providerid=%Q and type=%Q", providerid, type);
+ tryvm_if(query == NULL, ret = PMINFO_R_ERROR, "Out of memory");
/*prepare query*/
ret = sqlite3_prepare_v2(GET_DB(manifest_db), query, strlen(query), &stmt, NULL);
/*Start constructing query*/
query = sqlite3_mprintf("select * from package_app_data_control where providerid=%Q", providerid);
+ tryvm_if(query == NULL, ret = PMINFO_R_ERROR, "Out of memory");
/*prepare query*/
ret = sqlite3_prepare_v2(GET_DB(manifest_db), query, strlen(query), &stmt, NULL);
_save_column_str(stmt, 0, pkgid);
ret = PMINFO_R_OK;
} else if (ret == SQLITE_DONE) {
- _LOGI("cannot find pkgid of app %s for uid %d", appid);
+ _LOGI("cannot find pkgid of app %s for uid %d", appid, (int)uid);
ret = PMINFO_R_ENOENT;
} else {
_LOGE("step error: %s", sqlite3_errmsg(db));