summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-queries.c
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-01-03 13:44:58 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-01-03 13:53:40 +0100
commit6c6c42e3d1b49d90aacc0b67f8540471cae02a1d (patch)
treea10c253a6b06b9758acbd5c2ff0f0b094651c1ed /src/irc/core/irc-queries.c
parenteb20a6c846373bbfba4cd80e6aef017b56409047 (diff)
downloadirssi-6c6c42e3d1b49d90aacc0b67f8540471cae02a1d.zip
Merge branch 'security' into 'master'
See merge request !7
Diffstat (limited to 'src/irc/core/irc-queries.c')
-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;