summaryrefslogtreecommitdiffstats
path: root/drivers/huaweimodem
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-02-01 15:12:47 -0200
committerMarcel Holtmann <marcel@holtmann.org>2011-02-01 18:31:19 +0100
commit0013199bc43b8a86f9cb320ad70dc0e51a588c5c (patch)
tree8dce6c3a4c7a0418e2d92d4b14160fecee21bba7 /drivers/huaweimodem
parent0470319e7259b77d552728b413f70c359909f69e (diff)
downloadofono-0013199bc43b8a86f9cb320ad70dc0e51a588c5c.tar.bz2
huaweimodem: use ofono_call initializer
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r--drivers/huaweimodem/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c
index a30513a2..53377d9c 100644
--- a/drivers/huaweimodem/voicecall.c
+++ b/drivers/huaweimodem/voicecall.c
@@ -56,10 +56,12 @@ static struct ofono_call *create_call(struct ofono_voicecall *vc, int type,
struct ofono_call *call;
/* Generate a call structure for the waiting call */
- call = g_try_new0(struct ofono_call, 1);
+ call = g_try_new(struct ofono_call, 1);
if (call == NULL)
return NULL;
+ ofono_call_init(call);
+
call->id = id;
call->type = type;
call->direction = direction;