diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-25 19:11:25 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-25 19:11:25 +0200 |
commit | 2c7057bf2211da27028a699746bea4c4fe1cb7d9 (patch) | |
tree | e7a6e03dccee95af158bde963f59e440e69a01de | |
parent | e97dc832e5b577869db46eed7fabb70fe9f249e6 (diff) | |
download | weechat-2c7057bf2211da27028a699746bea4c4fe1cb7d9.zip |
relay/remote: fix relay API version comparison with a string that can be NULL
-rw-r--r-- | src/plugins/relay/api/remote/relay-remote-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ( |