mirror of git://git.sysmocom.de/ofono
style: Prefer initialized variables on top
This commit is contained in:
parent
84e73a8b7c
commit
5094b677ca
|
@ -353,9 +353,9 @@ static gboolean handle_command_set_idle_text(const struct stk_command *cmd,
|
|||
struct stk_response *rsp,
|
||||
struct ofono_stk *stk)
|
||||
{
|
||||
const char *idle_mode_text;
|
||||
DBusConnection *conn = ofono_dbus_get_connection();
|
||||
const char *path = __ofono_atom_get_path(stk->atom);
|
||||
const char *idle_mode_text;
|
||||
|
||||
if (stk->idle_mode_text) {
|
||||
g_free(stk->idle_mode_text);
|
||||
|
|
Loading…
Reference in New Issue