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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user