summaryrefslogtreecommitdiffstats
path: root/src/hci/tui
diff options
context:
space:
mode:
Diffstat (limited to 'src/hci/tui')
-rw-r--r--src/hci/tui/settings_ui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci/tui/settings_ui.c b/src/hci/tui/settings_ui.c
index 336af4e91..c6261c77f 100644
--- a/src/hci/tui/settings_ui.c
+++ b/src/hci/tui/settings_ui.c
@@ -118,7 +118,7 @@ static void load_setting ( struct setting_widget *widget ) {
/* Read current setting value */
if ( show_setting ( widget->context, widget->setting,
- widget->value, sizeof ( widget->value ) ) != 0 ) {
+ widget->value, sizeof ( widget->value ) ) < 0 ) {
widget->value[0] = '\0';
}