From 2c7057bf2211da27028a699746bea4c4fe1cb7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 25 May 2024 19:11:25 +0200 Subject: relay/remote: fix relay API version comparison with a string that can be NULL --- src/plugins/relay/api/remote/relay-remote-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/relay/api/remote/relay-remote-event.c b/src/plugins/relay/api/remote/relay-remote-event.c index cdc36d376..587ccaf38 100644 --- a/src/plugins/relay/api/remote/relay-remote-event.c +++ b/src/plugins/relay/api/remote/relay-remote-event.c @@ -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 ( -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0