aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-28 17:06:09 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-28 17:15:18 +0200
commit567a744a49deb81ecdda307444692d8c38d062c6 (patch)
treecfc8fbbb2cf09fafa0e118a28d12b791b2a41b6b
parent6b684fec5fef608eb28ab443598c3ca03f0077bc (diff)
wavecom: fix segfault when setting allowed modes
-rw-r--r--plugins/wavecom/mm-broadband-modem-wavecom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wavecom/mm-broadband-modem-wavecom.c b/plugins/wavecom/mm-broadband-modem-wavecom.c
index eb51ab04..8d5e91fb 100644
--- a/plugins/wavecom/mm-broadband-modem-wavecom.c
+++ b/plugins/wavecom/mm-broadband-modem-wavecom.c
@@ -466,7 +466,7 @@ set_allowed_modes (MMIfaceModem *self,
{
SetAllowedModesContext *ctx;
- ctx = g_new (SetAllowedModesContext, 1);
+ ctx = g_new0 (SetAllowedModesContext, 1);
ctx->self = g_object_ref (self);
ctx->result = g_simple_async_result_new (G_OBJECT (self),
callback,