From 09b7202c54dcf0763dc0dfb283870b22dd933273 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 17 Nov 2019 21:01:46 +0100 Subject: [PATCH] Do a fall-through here --- list_special.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/list_special.c b/list_special.c index bf52522d59..27318d169c 100644 --- a/list_special.c +++ b/list_special.c @@ -68,6 +68,9 @@ struct string_list *dir_list_new_special(const char *input_dir, exts = ext_name; } break; + case DIR_LIST_RECURSIVE: + recursive = true; + /* fall-through */ case DIR_LIST_CORE_INFO: { core_info_list_t *list = NULL; @@ -77,16 +80,6 @@ struct string_list *dir_list_new_special(const char *input_dir, exts = list->all_ext; } break; - case DIR_LIST_RECURSIVE: - { - core_info_list_t *list = NULL; - core_info_get_list(&list); - - if (list) - exts = list->all_ext; - recursive = true; - } - break; case DIR_LIST_SHADERS: #if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL) { @@ -138,7 +131,8 @@ struct string_list *dir_list_new_special(const char *input_dir, return NULL; } - return dir_list_new(input_dir, exts, false, settings->bools.show_hidden_files, + return dir_list_new(input_dir, exts, false, + settings->bools.show_hidden_files, type == DIR_LIST_CORE_INFO, recursive); }