diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-04 23:48:47 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-07 13:18:14 +0200 |
commit | 40a68549b5d4d99c0083f15242aab7516a87871f (patch) | |
tree | 46ccadaef31e990231751028e97809afa35ca9e4 | |
parent | a499b50b7b70151b9088f8641152681b79dcc885 (diff) | |
download | weechat-40a68549b5d4d99c0083f15242aab7516a87871f.zip |
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.
-rw-r--r-- | src/plugins/relay/relay-remote.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-remote.c b/src/plugins/relay/relay-remote.c index 12880d3da..080b99ce2 100644 --- a/src/plugins/relay/relay-remote.c +++ b/src/plugins/relay/relay-remote.c @@ -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); |