From 4a058ae0f5b58b87ebb568c13fcf4a91fbbb797b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 20:24:12 +0200 Subject: trigger: remove check of NULL pointers before calling trigger_free() (issue #865) --- src/plugins/trigger/trigger-command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index 8491ea1fc..b663bb61e 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -1161,8 +1161,7 @@ trigger_command_trigger (const void *pointer, void *data, } else { - if (ptr_trigger) - trigger_free (ptr_trigger); + trigger_free (ptr_trigger); ptr_trigger = trigger_new ( trigger_config_default_list[j][0], /* name */ trigger_config_default_list[j][1], /* enabled */ -- cgit v1.2.3