summaryrefslogtreecommitdiff
path: root/src/irc/notifylist/notifylist.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-22 12:19:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-22 12:19:27 +0000
commit9dc3176efdf9110bec40dd915ce6ce4d8104f718 (patch)
treebcd8d5274a69caf2e441f68786ad3c3bb97a5aa3 /src/irc/notifylist/notifylist.c
parentd4b0750d0985b154206ef738b225a5f1f55631cb (diff)
downloadirssi-9dc3176efdf9110bec40dd915ce6ce4d8104f718.zip
just some extra check - might fix some crash..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1892 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/notifylist/notifylist.c')
-rw-r--r--src/irc/notifylist/notifylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c
index 402e315e..3d050a9d 100644
--- a/src/irc/notifylist/notifylist.c
+++ b/src/irc/notifylist/notifylist.c
@@ -279,7 +279,7 @@ static void notifylist_check_join(IRC_SERVER_REC *server, const char *nick,
if (rec != NULL && rec->join_announced) return;
if (rec == NULL) rec = notify_nick_create(server, nick);
- user = g_strdup(userhost);
+ user = g_strdup(userhost == NULL ? "" : userhost);
host = strchr(user, '@');
if (host != NULL) *host++ = '\0'; else host = "";