1
0
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:
Sébastien Helleu
2017-03-25 14:09:01 +01:00
parent 97ca653a43
commit a5b00ec979
+3
View File
@@ -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++)