---
 drivers/hfpmodem/voicecall.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index b9bee62..a87ddbe 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;
-- 
1.7.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to