mirror of git://git.sysmocom.de/ofono
gatchat: Only set debug on IO if we have it
This commit is contained in:
parent
3aa1faddef
commit
f9b2e5cf5a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue