diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-10-18 19:50:09 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-10-18 19:50:09 +0000 |
commit | 0f54aa2285c1b88f929ffc9dfeb7aad80ddc5222 (patch) | |
tree | 1312e3b51854a67b7a389775af98ea25d27647e3 /src/irc | |
parent | 9548cbfadb8411f33aaf03bd6188cc5d5472eb7b (diff) | |
download | irssi-0f54aa2285c1b88f929ffc9dfeb7aad80ddc5222.zip |
Fix crash on netsplit+join after /upgrade from 0.8.9
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4047 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-nicklist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index 46dde7b7..1bca67c9 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -434,7 +434,7 @@ static const char *get_nick_flags(SERVER_REC *server) const char *prefix = g_hash_table_lookup(irc_server->isupport, "PREFIX"); - prefix = strchr(prefix, ')'); + prefix = prefix == NULL ? NULL : strchr(prefix, ')'); return prefix == NULL ? "" : prefix+1; } |