diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-27 17:06:53 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-28 17:27:33 -0500 |
commit | f9b2e5cf5a643f5cd1acba6e908b4bef38856c0c (patch) | |
tree | 4b042f094d3b186fe1e0775ad1612f531c059c88 /gatchat/gatchat.c | |
parent | 3aa1faddef0b6542da8a0ee5e8aeb8f1c73b87c1 (diff) | |
download | ofono-f9b2e5cf5a643f5cd1acba6e908b4bef38856c0c.tar.bz2 |
gatchat: Only set debug on IO if we have it
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r-- | gatchat/gatchat.c | 3 |
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; } |