diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-02-01 15:12:47 -0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-02-01 18:31:19 +0100 |
commit | 0013199bc43b8a86f9cb320ad70dc0e51a588c5c (patch) | |
tree | 8dce6c3a4c7a0418e2d92d4b14160fecee21bba7 /drivers/huaweimodem | |
parent | 0470319e7259b77d552728b413f70c359909f69e (diff) | |
download | ofono-0013199bc43b8a86f9cb320ad70dc0e51a588c5c.tar.bz2 |
huaweimodem: use ofono_call initializer
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r-- | drivers/huaweimodem/voicecall.c | 4 |
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; |