Fix releaseyear queries giving empty result sets.

This commit is contained in:
Alcaro 2015-02-12 19:17:04 +01:00
parent 3f46f97abd
commit 2ec829ebc1
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ int menu_database_populate_query(file_list_t *list, const char *path,
#ifdef HAVE_LIBRETRODB
libretrodb_t db;
libretrodb_cursor_t cur;
if ((libretrodb_open(path, &db)) != 0)
return -1;
if ((database_open_cursor(&db, &cur, query) != 0))

View File

@ -853,8 +853,8 @@ static uint32_t create_string_list_rdb_entry_int(const char *desc, const char *l
str_len += strlen(label) + 1;
string_list_append(str_list, label, attr);
str_len += sizeof(actual_int);
snprintf(str, sizeof(str), "%d", actual_int);
str_len += strlen(str) + 1;
string_list_append(str_list, str, attr);
str_len += strlen(path) + 1;