mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Silence some Coverity errors
This commit is contained in:
parent
db23f4f3ab
commit
43d06591c4
15
core_info.c
15
core_info.c
@ -234,6 +234,9 @@ static core_info_list_t *core_info_list_new(const char *path)
|
|||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
config_file_t *conf = config_file_new(info_path);
|
config_file_t *conf = config_file_new(info_path);
|
||||||
|
|
||||||
|
if (!conf)
|
||||||
|
continue;
|
||||||
|
|
||||||
config_get_string(conf, "display_name",
|
config_get_string(conf, "display_name",
|
||||||
&core_info[i].display_name);
|
&core_info[i].display_name);
|
||||||
config_get_string(conf, "corename",
|
config_get_string(conf, "corename",
|
||||||
@ -660,9 +663,15 @@ void core_info_get_name(const char *path, char *s, size_t len)
|
|||||||
|
|
||||||
conf = config_file_new(info_path);
|
conf = config_file_new(info_path);
|
||||||
|
|
||||||
config_get_string(conf, "corename",
|
if (!conf)
|
||||||
&new_core_name);
|
continue;
|
||||||
strlcpy(s, new_core_name, len);
|
|
||||||
|
if (config_get_string(conf, "corename",
|
||||||
|
&new_core_name))
|
||||||
|
{
|
||||||
|
strlcpy(s, new_core_name, len);
|
||||||
|
free(new_core_name);
|
||||||
|
}
|
||||||
|
|
||||||
config_file_free(conf);
|
config_file_free(conf);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user