From 87f05b3a7b51ba9b84c3f457d50a60a71cd63eb3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 25 Apr 2017 18:32:08 +0200 Subject: [PATCH] Cleanups --- input/input_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/input_config.c b/input/input_config.c index 021a5a8204..878c1f9324 100644 --- a/input/input_config.c +++ b/input/input_config.c @@ -453,6 +453,7 @@ static void input_config_get_bind_string_joyaxis(char *buf, const char *prefix, unsigned axis = 0; char dir = '\0'; settings_t *settings = config_get_ptr(); + bool label_show = settings->input.input_descriptor_label_show; if (AXIS_NEG_GET(bind->joyaxis) != AXIS_DIR_NONE) { @@ -464,8 +465,7 @@ static void input_config_get_bind_string_joyaxis(char *buf, const char *prefix, dir = '+'; axis = AXIS_POS_GET(bind->joyaxis); } - if (!string_is_empty(bind->joyaxis_label) - && settings->input.input_descriptor_label_show) + if (!string_is_empty(bind->joyaxis_label) && label_show) snprintf(buf, size, "%s%s (axis) ", prefix, bind->joyaxis_label); else snprintf(buf, size, "%s%c%u (%s) ", prefix, dir, axis,