summaryrefslogtreecommitdiff
path: root/src/plugins/exec/exec.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 00:21:54 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 08:41:44 +0200
commit529a22e342e9195bd0173877e707d74397f55d96 (patch)
tree56c6fb9d00bf630b8f78f978ab36af1240da3853 /src/plugins/exec/exec.c
parent828ca37225bcff10d349cd1c65c50417a5e07f0f (diff)
downloadweechat-529a22e342e9195bd0173877e707d74397f55d96.zip
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865)
Diffstat (limited to 'src/plugins/exec/exec.c')
-rw-r--r--src/plugins/exec/exec.c3
1 files changed, 1 insertions, 2 deletions
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);