mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
trigger: check that regex pointers are not NULL in function "trigger_regex_free"
This commit is contained in:
@@ -482,6 +482,9 @@ trigger_regex_free (int *regex_count, struct t_trigger_regex **regex)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!regex_count || !regex)
|
||||
return;
|
||||
|
||||
if (*regex_count > 0)
|
||||
{
|
||||
for (i = 0; i < *regex_count; i++)
|
||||
|
||||
Reference in New Issue
Block a user