summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-02-01 15:12:46 -0200
committerMarcel Holtmann <marcel@holtmann.org>2011-02-01 18:31:28 +0100
commita6d15c6a642acca73519fd14910a69e3d506c82d (patch)
treebfa1db1576e66fdd44d56ec75c913ad135335ead /drivers
parent0013199bc43b8a86f9cb320ad70dc0e51a588c5c (diff)
downloadofono-a6d15c6a642acca73519fd14910a69e3d506c82d.tar.bz2
hfpmodem: use ofono_call initializer
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hfpmodem/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index b9bee62f..a87ddbea 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -96,10 +96,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 = ofono_voicecall_get_next_callid(vc);
call->type = type;
call->direction = direction;