mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 02:03:13 +02:00
irc: check that pointers received in arguments are not NULL in "free" functions
Functions: - irc_channel_nick_speaking_time_free - irc_ignore_free - irc_notify_free - irc_raw_message_free - irc_server_outqueue_free
This commit is contained in:
@@ -1512,6 +1512,9 @@ irc_server_outqueue_free (struct t_irc_server *server,
|
||||
{
|
||||
struct t_irc_outqueue *new_outqueue;
|
||||
|
||||
if (!server || !outqueue)
|
||||
return;
|
||||
|
||||
/* remove outqueue message */
|
||||
if (server->last_outqueue[priority] == outqueue)
|
||||
server->last_outqueue[priority] = outqueue->prev_outqueue;
|
||||
|
||||
Reference in New Issue
Block a user