From 974c3ae8407d1ab63e568a8958ac0810c2f5baf3 Mon Sep 17 00:00:00 2001 From: cancel <cancel@cancel.fm> Date: Mon, 27 Jan 2020 08:57:20 +0900 Subject: [PATCH] Cleanup --- tui_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tui_main.c b/tui_main.c index 4df8672..090d9d6 100644 --- a/tui_main.c +++ b/tui_main.c @@ -3192,11 +3192,10 @@ staticni Tui_menus_result tui_drive_menus(Tui *t, int key) { oso *addr = NULL; // Empty string is OK here if (qform_get_text_line(qf, Single_form_item_id, &addr)) { - if (osolen(addr)) { + if (osolen(addr)) ososwap(&t->osc_address, &addr); - } else { + else osowipe(&t->osc_address); - } qnav_stack_pop(); tui_restart_osc_udp_if_enabled(t); t->prefs_touched |= TOUCHFLAG(Confopt_osc_output_address);