mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(libretrodb) Cleanup
This commit is contained in:
parent
c2519d0192
commit
6e4a6ab4b1
@ -450,13 +450,7 @@ int libretrodb_create_index(libretrodb_t *db,
|
||||
uint64_t item_loc = libretrodb_tell(db);
|
||||
bintree_t *tree = bintree_new(node_compare, &field_size);
|
||||
|
||||
if (!tree)
|
||||
{
|
||||
rv = -1;
|
||||
goto clean;
|
||||
}
|
||||
|
||||
if (libretrodb_cursor_open(db, &cur, NULL) != 0)
|
||||
if (!tree || (libretrodb_cursor_open(db, &cur, NULL) != 0))
|
||||
{
|
||||
rv = -1;
|
||||
goto clean;
|
||||
|
Loading…
x
Reference in New Issue
Block a user