summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-remote.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-25 19:23:22 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-26 20:59:44 +0200
commit561dd92d8eba49ed2ae16fc4a0a1fb6ff349758b (patch)
treed9d4ecabb68dc17040c4dacc61b0e76f9ebd8c89 /src/plugins/relay/relay-remote.c
parent619b40b42ff6474a6cbeb5fe1bdeb306370895f4 (diff)
downloadweechat-561dd92d8eba49ed2ae16fc4a0a1fb6ff349758b.zip
plugins: remove check of NULL pointers before calling weechat_config_option_free() (issue #865)
Diffstat (limited to 'src/plugins/relay/relay-remote.c')
-rw-r--r--src/plugins/relay/relay-remote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-remote.c b/src/plugins/relay/relay-remote.c
index 9d1ba211a..70147f472 100644
--- a/src/plugins/relay/relay-remote.c
+++ b/src/plugins/relay/relay-remote.c
@@ -787,8 +787,7 @@ relay_remote_free (struct t_relay_remote *remote)
free (remote->name);
for (i = 0; i < RELAY_REMOTE_NUM_OPTIONS; i++)
{
- if (remote->options[i])
- weechat_config_option_free (remote->options[i]);
+ weechat_config_option_free (remote->options[i]);
}
free (remote->address);
free (remote->websocket_key);