1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

relay: set default value of undefined remote options to empty string instead of NULL (issue #2066)

This fixes the websocket connection to remote that is not initiated after the
successful handshake with the remote relay/api.
This commit is contained in:
Sébastien Helleu
2024-04-04 23:48:47 +02:00
parent a499b50b7b
commit 40a68549b5
+4 -1
View File
@@ -458,7 +458,10 @@ relay_remote_new (const char *name, const char *url, const char *proxy,
for (i = 0; i < RELAY_REMOTE_NUM_OPTIONS; i++)
{
option[i] = relay_config_create_remote_option (name, i, value[i]);
option[i] = relay_config_create_remote_option (
name,
i,
(value[i]) ? value[i] : "");
}
new_remote = relay_remote_new_with_options (name, option);