diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-28 17:06:09 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-28 17:15:18 +0200 |
commit | 567a744a49deb81ecdda307444692d8c38d062c6 (patch) | |
tree | cfc8fbbb2cf09fafa0e118a28d12b791b2a41b6b | |
parent | 6b684fec5fef608eb28ab443598c3ca03f0077bc (diff) |
wavecom: fix segfault when setting allowed modes
-rw-r--r-- | plugins/wavecom/mm-broadband-modem-wavecom.c | 2 |
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, |