From 8cfb5b292270c40f6dd98b29f03e07623a65904b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 11 Jun 2016 20:22:03 +0200 Subject: [PATCH] Cleanups --- file_path_special.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/file_path_special.c b/file_path_special.c index ab4c0c0eea..ff5a41b399 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -356,16 +356,17 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe case APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT: #ifdef HAVE_XMB { - char s1[PATH_MAX_LENGTH] = {0}; settings_t *settings = config_get_ptr(); - fill_pathname_application_special(s1, sizeof(s1), - APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB); - if (!string_is_empty(settings->menu.xmb_font)) strlcpy(s, settings->menu.xmb_font, len); else + { + char s1[PATH_MAX_LENGTH] = {0}; + fill_pathname_application_special(s1, sizeof(s1), + APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB); fill_pathname_join(s, s1, "font.ttf", len); + } } #endif break;