From 19b9ffdb44ac71197ac1ac7c4502ee13194cd78f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 21 Jan 2011 13:07:04 +0100 Subject: [PATCH] calypso: Fix issue with name presentation and voice calls The Calypso voice call driver uses an ofono_call object that is on the stack. It is not automatically initilized to zero and thus causes to have a name presentation that is not valid UTF-8. This in return makes D-Bus fail and disconnect from the bus. To fix this ensure that the ofono_call object is properly set to zero first before populating it with values. --- drivers/calypsomodem/voicecall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c index f87e480f..837ff694 100644 --- a/drivers/calypsomodem/voicecall.c +++ b/drivers/calypsomodem/voicecall.c @@ -327,6 +327,8 @@ static void cpi_notify(GAtResult *result, gpointer user_data) g_at_chat_send(vd->chat, "AT%N0187", none_prefix, NULL, NULL, NULL); + memset(&call, 0, sizeof(call)); + switch (msgtype) { case 0: /* Set call status to incoming */