core_info_list_get_by_id - change 'return 0' to 'return NULL'

for code clarity
This commit is contained in:
twinaphex 2014-08-17 17:53:35 +02:00
parent f8ebcd3530
commit 1223b4fe99

View File

@ -447,13 +447,13 @@ const core_info_t *core_info_list_get_by_id(const char *core_id)
const core_info_list_t* cores = core_info_list_get();
if (!core_id || !cores)
return 0;
return NULL;
for (i = 0; i < cores->count; i ++)
if (cores->list[i].path && strcmp(core_id, cores->list[i].path) == 0)
return &cores->list[i];
return 0;
return NULL;
}
bool core_info_has_custom_config(const char *core_id,