Silence some Coverity warnings

This commit is contained in:
twinaphex 2016-12-21 01:34:28 +01:00
parent abf09d22b4
commit 58716e5f3c
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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;