wavecom: fix segfault when setting allowed modes

This commit is contained in:
Aleksander Morgado
2012-08-28 17:06:09 +02:00
parent 6b684fec5f
commit 567a744a49

View File

@@ -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,