summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-01-21 13:07:04 +0100
committerMarcel Holtmann <marcel@holtmann.org>2011-01-21 13:07:04 +0100
commit19b9ffdb44ac71197ac1ac7c4502ee13194cd78f (patch)
tree0b204667d15aa7912e33d55779fa01a14ab6b8ed /drivers
parent35aa581a0dd82668907e0c8092dad4371e66e80a (diff)
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.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/calypsomodem/voicecall.c2
1 files changed, 2 insertions, 0 deletions
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 */