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.
This commit is contained in:
Marcel Holtmann 2011-01-21 13:07:04 +01:00
parent 35aa581a0d
commit 19b9ffdb44
1 changed files with 2 additions and 0 deletions

View File

@ -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 */