summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-12-19 16:06:13 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2016-12-19 21:41:47 +0100
commit508d2e0860992d6906b5a7b73017edbaa8c94d98 (patch)
treeb80de19a0776e0eb03b508ca15773c9edfa09944 /src/irc
parent1c6695107c09e8861a696d66b029e7df62589fcd (diff)
downloadirssi-508d2e0860992d6906b5a7b73017edbaa8c94d98.zip
bail out if nick is NULL in irc_query_find
Closes #1
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-queries.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/irc-queries.c b/src/irc/core/irc-queries.c
index 12861744..77a5289d 100644
--- a/src/irc/core/irc-queries.c
+++ b/src/irc/core/irc-queries.c
@@ -45,6 +45,8 @@ QUERY_REC *irc_query_find(IRC_SERVER_REC *server, const char *nick)
{
GSList *tmp;
+ g_return_val_if_fail(nick != NULL, NULL);
+
for (tmp = server->queries; tmp != NULL; tmp = tmp->next) {
QUERY_REC *rec = tmp->data;