mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1450 from ailin-nemui/fix-1449
fix crash on connect in startup
This commit is contained in:
commit
d627e56021
@ -305,6 +305,11 @@ static SERVER_CONNECT_REC *create_addr_conn(int chat_type, const char *address,
|
|||||||
proto = chat_type >= 0 ? chat_protocol_find_id(chat_type) :
|
proto = chat_type >= 0 ? chat_protocol_find_id(chat_type) :
|
||||||
chat_protocol_get_default();
|
chat_protocol_get_default();
|
||||||
|
|
||||||
|
if (proto == NULL) {
|
||||||
|
signal_stop();
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
g_return_val_if_fail(proto != NULL, NULL);
|
g_return_val_if_fail(proto != NULL, NULL);
|
||||||
|
|
||||||
conn = proto->create_server_connect();
|
conn = proto->create_server_connect();
|
||||||
|
Loading…
Reference in New Issue
Block a user