From f9b2e5cf5a643f5cd1acba6e908b4bef38856c0c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 27 Apr 2010 17:06:53 -0500 Subject: gatchat: Only set debug on IO if we have it --- gatchat/gatchat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gatchat/gatchat.c') 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; } -- cgit v1.2.3