diff src/protocols/msn/msn-utils.c @ 19738:bc30c6270d9f

[gaim-migrate @ 16473] add the Framework of SOAP request Now can retrieve the Contact via SOAP Request. so many bug still exist! commited by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sun, 09 Jul 2006 16:48:25 +0000
parents 3cfdf1653a64
children 852b32710df0
line wrap: on
line diff
--- a/src/protocols/msn/msn-utils.c	Sat Jun 24 12:04:32 2006 +0000
+++ b/src/protocols/msn/msn-utils.c	Sun Jul 09 16:48:25 2006 +0000
@@ -351,14 +351,14 @@
 
 	host = g_strdup(str);
 
-	if ((c = strchr(host, ':')) != NULL)
-	{
+	if ((c = strchr(host, ':')) != NULL){
 		*c = '\0';
 		port = atoi(c + 1);
+	}else{
+		port = 1863;
 	}
-	else
-		port = 1863;
 
 	*ret_host = host;
 	*ret_port = port;
 }
+