summaryrefslogtreecommitdiffstats
path: root/drivers/stemodem
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-02-01 15:12:50 -0200
committerMarcel Holtmann <marcel@holtmann.org>2011-02-01 18:31:49 +0100
commit4e0f87106a2db9dcc4a5b7976743143daa7e2e53 (patch)
tree2c775062398e415a567afeaa2a28643bbfe69c41 /drivers/stemodem
parent0ca07330f4c772d48c7b49b0bd479a66da90cc0b (diff)
downloadofono-4e0f87106a2db9dcc4a5b7976743143daa7e2e53.tar.bz2
stemodem: use ofono_call initializer
Diffstat (limited to 'drivers/stemodem')
-rw-r--r--drivers/stemodem/voicecall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 1c7c0bdc..fa078a86 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -108,10 +108,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->type = type;
call->direction = direction;
call->status = status;