summaryrefslogtreecommitdiff
path: root/src/irc/core/nicklist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/nicklist.c')
-rw-r--r--src/irc/core/nicklist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/nicklist.c b/src/irc/core/nicklist.c
index b8947ee6..826ee4a9 100644
--- a/src/irc/core/nicklist.c
+++ b/src/irc/core/nicklist.c
@@ -502,7 +502,7 @@ static void event_userhost(const char *data, IRC_SERVER_REC *server)
params = event_get_params(data, 2, NULL, &hosts);
phosts = g_strsplit(hosts, " ", -1);
- for (pos = phosts; pos != NULL; pos++) {
+ for (pos = phosts; *pos != NULL; pos++) {
ptr = strchr(*pos, '=');
if (ptr == NULL) continue;
*ptr++ = '\0';