aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-12-02 20:44:57 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:32 +0100
commit92cb17be4d05e85dc375801a578fa517c0b00b61 (patch)
tree657212d5b31aa22aa4f0b9dd45b0b159d047c19e /cli/mmcli-modem.c
parent77ff2758b3c377f326e49f92abf959a5be33a55d (diff)
cli: fix sync operations, initialize context
Diffstat (limited to 'cli/mmcli-modem.c')
-rw-r--r--cli/mmcli-modem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c
index 15422f5a..c8b53445 100644
--- a/cli/mmcli-modem.c
+++ b/cli/mmcli-modem.c
@@ -584,6 +584,8 @@ mmcli_modem_run_synchronous (GDBusConnection *connection)
exit (EXIT_FAILURE);
}
+ /* Initialize context */
+ ctx = g_new0 (Context, 1);
ctx->modem = mmcli_get_modem_sync (connection, modem_str);
/* Request to get info from modem? */