mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
Silence some Coverity warnings
This commit is contained in:
parent
abf09d22b4
commit
58716e5f3c
@ -140,9 +140,6 @@ static void core_info_list_free(core_info_list_t *core_info_list)
|
||||
{
|
||||
core_info_t *info = (core_info_t*)&core_info_list->list[i];
|
||||
|
||||
if (!info)
|
||||
continue;
|
||||
|
||||
free(info->path);
|
||||
free(info->core_name);
|
||||
free(info->systemname);
|
||||
|
@ -414,8 +414,8 @@ static bool gl_glsl_load_source_path(struct video_shader_pass *pass,
|
||||
const char *path)
|
||||
{
|
||||
ssize_t len;
|
||||
int nitems = filestream_read_file(path,
|
||||
(void**)&pass->source.string.vertex, &len);
|
||||
int nitems = pass ? filestream_read_file(path,
|
||||
(void**)&pass->source.string.vertex, &len) : 0;
|
||||
|
||||
if (nitems <= 0 || len <= 0)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user