From 1223b4fe99c39fb960b6de7e33f64030c4993067 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 17 Aug 2014 17:53:35 +0200 Subject: [PATCH] core_info_list_get_by_id - change 'return 0' to 'return NULL' for code clarity --- core_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core_info.c b/core_info.c index dd72ac34bb..2e872ab28e 100644 --- a/core_info.c +++ b/core_info.c @@ -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,