summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-04-18 09:46:20 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-04-18 09:46:20 -0500
commite40d6d708fdb209a3a57f12d80ff0f31ea52fa18 (patch)
tree9d415a83370e606a9b2a03c85b038e1d2b96fbc2 /drivers
parentb6a2586d8432339cd2bd1ed3a6ca9af9ca889ce1 (diff)
downloadofono-e40d6d708fdb209a3a57f12d80ff0f31ea52fa18.tar.bz2
ussd: Fix use of non-cloned gatchat object
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atmodem/ussd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/atmodem/ussd.c b/drivers/atmodem/ussd.c
index f8cde2da..a82b66bc 100644
--- a/drivers/atmodem/ussd.c
+++ b/drivers/atmodem/ussd.c
@@ -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;
}