From bfb71f06946de1825a8005d65b2ff5b46aaa9804 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 9 Feb 2018 13:27:18 -0500 Subject: [PATCH] C89 buildfix --- configuration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index 44ca8c52f9..f6e65748f1 100644 --- a/configuration.c +++ b/configuration.c @@ -2368,6 +2368,7 @@ static bool config_load_file(const char *path, bool set_defaults, #endif const char *path_core = NULL; const char *path_config = NULL; + const char *shader_ext = NULL; int bool_settings_size = sizeof(settings->bools) / sizeof(settings->bools.placeholder); int float_settings_size = sizeof(settings->floats) / sizeof(settings->floats.placeholder); int int_settings_size = sizeof(settings->ints) / sizeof(settings->ints.placeholder); @@ -2875,8 +2876,7 @@ static bool config_load_file(const char *path, bool set_defaults, config_read_keybinds_conf(conf); - - const char *shader_ext = path_get_extension(settings->paths.path_shader); + shader_ext = path_get_extension(settings->paths.path_shader); if (!string_is_empty(shader_ext)) {