diff --git a/gfx/video_shader_parse.c b/gfx/video_shader_parse.c index 6c217bd1a7..e5e1c7941c 100644 --- a/gfx/video_shader_parse.c +++ b/gfx/video_shader_parse.c @@ -787,17 +787,15 @@ static char *video_shader_read_reference_path(const char *path) **/ config_file_t *video_shader_read_preset(const char *path) { - config_file_t *conf; char *reference = video_shader_read_reference_path(path); if (reference) { - conf = config_file_new_from_path_to_string(reference); + config_file_t *conf = + config_file_new_from_path_to_string(reference); free(reference); + return conf; } - else - conf = config_file_new_from_path_to_string(path); - - return conf; + return config_file_new_from_path_to_string(path); } /**