summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-27 20:29:50 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-28 17:27:34 -0500
commit85448aac8cf71b1528d4328def581b103326210d (patch)
treee3276b152d769d9d034053080a7b69bdb10325cb /gatchat/gatchat.c
parent19115e0a1533b0e3fa28d6aea2560b949cf0cb99 (diff)
downloadofono-85448aac8cf71b1528d4328def581b103326210d.tar.bz2
gatchat: get_channel should return one from GAtIO
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index 2aa2b4cb..19202b01 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -920,10 +920,10 @@ GAtChat *g_at_chat_new_blocking(GIOChannel *channel, GAtSyntax *syntax)
GIOChannel *g_at_chat_get_channel(GAtChat *chat)
{
- if (chat == NULL)
+ if (chat == NULL || chat->io == NULL)
return NULL;
- return chat->channel;
+ return g_at_io_get_channel(chat->io);
}
GAtChat *g_at_chat_ref(GAtChat *chat)