(task_database) Use task_init

This commit is contained in:
twinaphex 2019-04-30 10:25:23 +02:00
parent 2d99cdcbf3
commit 34be5862ee
2 changed files with 1 additions and 2 deletions

View File

@ -835,7 +835,6 @@ retro_task_t *task_init(void)
retro_task_t *task = (retro_task_t*)calloc(1, sizeof(*task));
task->ident = task_get_next_ident();
task->frontend_userdata = NULL;
return task;
}

View File

@ -1355,7 +1355,7 @@ bool task_push_dbscan(
bool db_dir_show_hidden_files,
retro_task_callback_t cb)
{
retro_task_t *t = (retro_task_t*)calloc(1, sizeof(*t));
retro_task_t *t = task_init();
db_handle_t *db = (db_handle_t*)calloc(1, sizeof(db_handle_t));
if (!t || !db)