diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-23 19:56:24 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-23 19:56:24 -0600 |
commit | d6f5ac37675aa867412271cb073c8252e7043557 (patch) | |
tree | 09223d0eef84b9d2ecaa7c2d999523c4dbd63650 | |
parent | ca025eb90532acbbdddaa5694d3662cb8911306c (diff) | |
download | ofono-d6f5ac37675aa867412271cb073c8252e7043557.tar.bz2 |
Fix: Make sure we don't gobble up unsolicited
-rw-r--r-- | gatchat/gatchat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index 320150af..7ec1784c 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -37,6 +37,8 @@ /* #define WRITE_SCHEDULER_DEBUG 1 */ +static const char *none_prefix[] = { NULL }; + static void g_at_chat_wakeup_writer(GAtChat *chat); static void debug_chat(GAtChat *chat, gboolean in, const char *str, gsize len); @@ -827,8 +829,8 @@ static gboolean can_write_data(GIOChannel *channel, GIOCondition cond, } if (chat->cmd_bytes_written == 0 && wakeup_first == TRUE) { - cmd = at_command_create(chat->wakeup, NULL, FALSE, NULL, NULL, - NULL, NULL); + cmd = at_command_create(chat->wakeup, none_prefix, FALSE, + NULL, NULL, NULL, NULL); if (!cmd) return FALSE; |