From e5abcdb76c17b9b64085d3e2a041c0ae1c2d6af7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 20 Oct 2001 22:02:55 +0000 Subject: fix a fix git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1869 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/servers-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c index 795baefa..38d34ecd 100644 --- a/src/core/servers-setup.c +++ b/src/core/servers-setup.c @@ -299,7 +299,7 @@ server_create_conn(int chat_type, const char *dest, int port, return rec; } - chatrec = chatnet_find(chatnet); + chatrec = chatnet == NULL ? NULL : chatnet_find(chatnet); if (chatrec != NULL) chatnet = chatrec->name; -- cgit v1.2.3