summaryrefslogtreecommitdiffstats
path: root/src/stk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stk.c')
-rw-r--r--src/stk.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stk.c b/src/stk.c
index 98cf8108..9222800a 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -362,12 +362,9 @@ static gboolean handle_command_set_idle_text(const struct stk_command *cmd,
stk->idle_mode_text = NULL;
}
- if (!cmd->setup_idle_mode_text.text)
- goto out;
-
- stk->idle_mode_text = g_strdup(cmd->setup_idle_mode_text.text);
+ if (cmd->setup_idle_mode_text.text)
+ stk->idle_mode_text = g_strdup(cmd->setup_idle_mode_text.text);
-out:
idle_mode_text = stk->idle_mode_text ?: "";
ofono_dbus_signal_property_changed(conn, path, OFONO_STK_INTERFACE,
"IdleModeText",