From 529a22e342e9195bd0173877e707d74397f55d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 25 Apr 2024 00:21:54 +0200 Subject: plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865) --- src/plugins/exec/exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/exec/exec.c') diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index e0d91804b..8d7d4a1f5 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -635,8 +635,7 @@ exec_free (struct t_exec_cmd *exec_cmd) last_exec_cmd = exec_cmd->prev_cmd; /* free data */ - if (exec_cmd->hook) - weechat_unhook (exec_cmd->hook); + weechat_unhook (exec_cmd->hook); free (exec_cmd->name); free (exec_cmd->command); free (exec_cmd->buffer_full_name); -- cgit v1.2.3