1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

tests/relay: fix crash in tests on Alpine 3.18

This commit is contained in:
Sébastien Helleu
2023-07-01 09:43:56 +02:00
parent c84274cd2b
commit 930b42aecf
3 changed files with 5 additions and 2 deletions
+4
View File
@@ -23,6 +23,10 @@ Bug fixes::
* irc: fix display of country code in message 344 received as whois geo info (issue #1736)
Tests::
* relay: fix crash in tests on Alpine 3.18
Build::
* php: fix detection of PHP 8.2 on Alpine 3.18
+1 -1
View File
@@ -206,7 +206,7 @@ relay_irc_sendf (struct t_relay_client *client, const char *format, ...)
const char *str_message, *ptr_msg1, *ptr_msg2;
struct t_hashtable *hashtable_in, *hashtable_out;
if (!client)
if (!client || !format)
return;
weechat_va_format (format);
@@ -487,7 +487,6 @@ TEST(RelayIrc, RelayIrcMessageParse)
TEST(RelayIrcWithClient, RelayIrcSendf)
{
relay_irc_sendf (NULL, NULL);
relay_irc_sendf (NULL, "test");
relay_irc_sendf (ptr_relay_client, NULL);