gatchat: Only set debug on IO if we have it

This commit is contained in:
Denis Kenzior 2010-04-27 17:06:53 -05:00
parent 3aa1faddef
commit f9b2e5cf5a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}