ussd: Fix use of non-cloned gatchat object

This commit is contained in:
Denis Kenzior 2011-04-18 09:46:20 -05:00
parent b6a2586d84
commit e40d6d708f
1 changed files with 4 additions and 3 deletions

View File

@ -316,10 +316,11 @@ static int at_ussd_probe(struct ofono_ussd *ussd, unsigned int vendor,
ofono_ussd_set_data(ussd, data);
g_at_chat_send(chat, "AT+CSCS?", cscs_prefix, read_charset_cb, data,
NULL);
g_at_chat_send(data->chat, "AT+CSCS?", cscs_prefix,
read_charset_cb, data, NULL);
g_at_chat_send(chat, "AT+CUSD=1", NULL, at_ussd_register, ussd, NULL);
g_at_chat_send(data->chat, "AT+CUSD=1", NULL,
at_ussd_register, ussd, NULL);
return 0;
}