diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 7392e1298..3be948895 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -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; |