Change-Id: I1f9c417f1c11bc72d214d45a27ffe78695371301
goto free_memory;
sticker_info->uri = _get_string_from_object(info_object, "uri");
- if (!sticker_info->uri)
+ if (!sticker_info->uri || sticker_info->uri[0] != '\0')
goto free_memory;
if (sticker_info->type == 1) {
if (ret != SQLITE_OK) {
LOGE("Failed to create sticker_whitelist_info table : %s", err);
ret = STICKERD_SERVER_ERROR_DB_FAILED;
+ goto cleanup;
}
ret = sqlite3_exec(db, STICKER_RECENT_HISTORY_INFO_CREATE_TABLE, NULL, NULL, &err);
if (ret != SQLITE_OK) {
LOGE("Failed to create sticker_recent_history_info table : %s", err);
ret = STICKERD_SERVER_ERROR_DB_FAILED;
+ goto cleanup;
}
is_corrupted = FALSE;
goto free_memory;
char *rel_thumbnail = __get_string_from_object(info_object, "thumbnail");
- if (rel_thumbnail) {
+ if (rel_thumbnail && rel_thumbnail[0] != '\0') {
thumbnail_path = __convert_sticker_uri(rel_thumbnail, appid, app_path);
free(rel_thumbnail);
}