From a5832f4fb1cb994a796bee6a21fa25de27d0e46d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 23 Feb 2015 09:26:35 +0100 Subject: [PATCH] (Overlay) Cleanup --- input/input_overlay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input/input_overlay.c b/input/input_overlay.c index 1bbff82026..923fcc35a3 100644 --- a/input/input_overlay.c +++ b/input/input_overlay.c @@ -336,7 +336,7 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol, struct overlay *overlay, unsigned idx) { char overlay_path_key[64]; - char overlay_path[PATH_MAX_LENGTH], overlay_resolved_path[PATH_MAX_LENGTH]; + char overlay_path[PATH_MAX_LENGTH]; config_file_t *conf = config_file_new(ol->overlay_path); if (!conf) @@ -348,6 +348,7 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol, if (config_get_path(conf, overlay_path_key, overlay_path, sizeof(overlay_path))) { + char overlay_resolved_path[PATH_MAX_LENGTH]; struct texture_image img = {0}; fill_pathname_resolve_relative(overlay_resolved_path, config_path,