mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Prevent some potential null-pointer deferences.
Spotted by our friend scan-build.
This commit is contained in:
parent
228f487a69
commit
98ead50b4e
3 changed files with 5 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist)
|
|||
}
|
||||
}
|
||||
|
||||
if (str->len > strlen(prefix_format)) {
|
||||
if (prefix_format != NULL && str->len > strlen(prefix_format)) {
|
||||
printtext(channel->server, channel->visible_name,
|
||||
MSGLEVEL_CLIENTCRAP, "%s", str->str);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue