diff options
author | James Booth <boothj5@gmail.com> | 2015-01-10 00:25:27 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-10 00:25:27 +0000 |
commit | 9bd2315d83d042156a5aa28227071756c46291b9 (patch) | |
tree | 45d1254582a4a5e4f80d900c1d6d928d4365a306 /src/chat_session.c | |
parent | 5e7d2f5f91d47af330742a3b554e6f03450d6623 (diff) | |
download | profani-tty-9bd2315d83d042156a5aa28227071756c46291b9.tar.gz |
Fixed chat session tests
Diffstat (limited to 'src/chat_session.c')
-rw-r--r-- | src/chat_session.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chat_session.c b/src/chat_session.c index 0def4da2..777621e1 100644 --- a/src/chat_session.c +++ b/src/chat_session.c @@ -92,6 +92,9 @@ chat_session_get(const char * const barejid) void chat_session_on_recipient_activity(const char * const barejid, const char * const resource) { + assert(barejid != NULL); + assert(resource != NULL); + ChatSession *session = g_hash_table_lookup(sessions, barejid); if (session) { // session exists with resource, do nothing |