summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-27 17:06:53 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-28 17:27:33 -0500
commitf9b2e5cf5a643f5cd1acba6e908b4bef38856c0c (patch)
tree4b042f094d3b186fe1e0775ad1612f531c059c88 /gatchat/gatchat.c
parent3aa1faddef0b6542da8a0ee5e8aeb8f1c73b87c1 (diff)
downloadofono-f9b2e5cf5a643f5cd1acba6e908b4bef38856c0c.tar.bz2
gatchat: Only set debug on IO if we have it
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index fc289198..ac45890b 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -1000,7 +1000,8 @@ gboolean g_at_chat_set_debug(GAtChat *chat,
chat->debugf = func;
chat->debug_data = user_data;
- g_at_io_set_debug(chat->io, func, user_data);
+ if (chat->io)
+ g_at_io_set_debug(chat->io, func, user_data);
return TRUE;
}