mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1298 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
cf944fc03b
commit
ed27007383
1 changed files with 6 additions and 4 deletions
|
|
@ -446,10 +446,12 @@ static NICK_REC *nick_nfind(CHANNEL_REC *channel, const char *nick, int len)
|
|||
tmpnick = g_strndup(nick, len);
|
||||
rec = g_hash_table_lookup(channel->nicks, tmpnick);
|
||||
|
||||
/* if there's multiple, get the one with identical case */
|
||||
while (rec->next != NULL) {
|
||||
if (strcmp(rec->nick, tmpnick) == 0)
|
||||
break;
|
||||
if (rec != NULL) {
|
||||
/* if there's multiple, get the one with identical case */
|
||||
while (rec->next != NULL) {
|
||||
if (strcmp(rec->nick, tmpnick) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
g_free(tmpnick);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue