From: Lucas De Marchi Date: Tue, 1 Feb 2011 17:12:50 +0000 (-0200) Subject: stemodem: use ofono_call initializer X-Git-Tag: 0.41~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e0f87106a2db9dcc4a5b7976743143daa7e2e53;p=platform%2Fupstream%2Fofono.git stemodem: use ofono_call initializer --- diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c index 1c7c0bd..fa078a8 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;