diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index ca0929f005..2ef331af88 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -538,7 +538,8 @@ bool video_shader_resolve_parameters(config_file_t *conf, /* If that doesn't work, fallback to the old path. * Ideally, we'd get rid of this path sooner or later. */ #endif - file = filestream_open(path, RFILE_MODE_READ_TEXT, -1); + if (!string_is_empty(path)) + file = filestream_open(path, RFILE_MODE_READ_TEXT, -1); if (!file) {