From 6825cb2cc7fc9439b12208ee4cc96eacd18b8275 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 20 Sep 2018 12:47:32 +0200 Subject: [PATCH] task_database.c - use string_is_equal --- tasks/task_database.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/task_database.c b/tasks/task_database.c index 285cef0118..48d70d33b7 100644 --- a/tasks/task_database.c +++ b/tasks/task_database.c @@ -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);