mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
tests: add tests on function irc_server_alloc_with_url
This commit is contained in:
@@ -1699,6 +1699,9 @@ irc_server_alloc_with_url (const char *irc_url)
|
||||
int ipv6, ssl, length;
|
||||
struct t_irc_server *ptr_server;
|
||||
|
||||
if (!irc_url || !irc_url[0])
|
||||
return NULL;
|
||||
|
||||
irc_url2 = strdup (irc_url);
|
||||
if (!irc_url2)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user