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