diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-25 19:40:05 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-26 21:18:24 +0200 |
commit | 114084a4fc232b18dc07e332a355485b671cdbf8 (patch) | |
tree | d5041d2d1492490ff2377f373dea70c9e7e919be /src/plugins | |
parent | 1a31512503aa28e6b0213f6131c14a20bad8ea40 (diff) | |
download | weechat-114084a4fc232b18dc07e332a355485b671cdbf8.zip |
relay: remove check of NULL pointers before calling weechat_completion_free() (issue #865)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/relay/weechat/relay-weechat-protocol.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c index d2b3e144c..5a9d85351 100644 --- a/src/plugins/relay/weechat/relay-weechat-protocol.c +++ b/src/plugins/relay/weechat/relay-weechat-protocol.c @@ -811,8 +811,7 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(completion) return WEECHAT_RC_OK; error: - if (completion) - weechat_completion_free (completion); + weechat_completion_free (completion); msg = relay_weechat_msg_new (id); if (msg) |