1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

relay/remote: fix relay API version comparison with a string that can be NULL

This commit is contained in:
Sébastien Helleu
2024-05-25 19:11:25 +02:00
parent e97dc832e5
commit 2c7057bf22
@@ -824,7 +824,7 @@ RELAY_REMOTE_EVENT_CALLBACK(version)
if (!event->remote->version_ok)
{
/* check version: the remote API must be exactly the same as local API */
if (strcmp (relay_api_version, RELAY_API_VERSION_STR) != 0)
if (weechat_strcmp (relay_api_version, RELAY_API_VERSION_STR) != 0)
{
weechat_version_local = weechat_info_get ("version", NULL);
weechat_printf (