mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
task_database.c - use string_is_equal
This commit is contained in:
parent
765e225f48
commit
6825cb2cc7
@ -518,7 +518,7 @@ static void task_database_cue_prune(database_info_handle_t *db,
|
||||
for (i = db->list_ptr; i < db->list->size; ++i)
|
||||
{
|
||||
if (db->list->elems[i].data
|
||||
&& !strcmp(path, db->list->elems[i].data))
|
||||
&& string_is_equal(path, db->list->elems[i].data))
|
||||
{
|
||||
RARCH_LOG("Pruning file referenced by cue: %s\n", path);
|
||||
free(db->list->elems[i].data);
|
||||
@ -550,7 +550,8 @@ static void gdi_prune(database_info_handle_t *db, const char *name)
|
||||
{
|
||||
for (i = db->list_ptr; i < db->list->size; ++i)
|
||||
{
|
||||
if (db->list->elems[i].data && !strcmp(path, db->list->elems[i].data))
|
||||
if (db->list->elems[i].data
|
||||
&& string_is_equal(path, db->list->elems[i].data))
|
||||
{
|
||||
RARCH_LOG("Pruning file referenced by gdi: %s\n", path);
|
||||
free(db->list->elems[i].data);
|
||||
|
Loading…
Reference in New Issue
Block a user