summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-25 18:15:20 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-25 18:15:35 +0200
commitce3fa431f47531b5f21eabe03e9f0af2f03a4cf4 (patch)
treee19566471023a91f85dface6311ed8fd0c407ea3
parent4a5be248047addd213ef3caaca98c345c2e02351 (diff)
Check for unallocated string
-rw-r--r--src/common/servlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/servlist.c b/src/common/servlist.c
index e42688d9..6529b162 100644
--- a/src/common/servlist.c
+++ b/src/common/servlist.c
@@ -620,7 +620,7 @@ servlist_connect (session *sess, ircnet *net, gboolean join)
 	{
 		strcpy (serv->sasluser, prefs.hex_irc_user_name);
 	}
-	else
+	else if (net->user != NULL)
 	{
 		safe_strcpy (serv->sasluser, net->user, sizeof (serv->sasluser));
 	}