src/protocols/msn/state.c

branch
soc.2006.msnp13
changeset 13889
1030d616ee64
parent 13888
bda6f562e1e6
child 13891
a357e7e3cddb
--- a/src/protocols/msn/state.c	Wed Aug 23 15:07:17 2006 +0000
+++ b/src/protocols/msn/state.c	Wed Aug 23 16:25:54 2006 +0000
@@ -86,20 +86,20 @@
 {
 	xmlnode *payloadNode, *psmNode;
 	char *psm_str,*psm;
-
+	
+	gaim_debug_info("Ma Yuan","msn get PSM\n");
 	payloadNode = xmlnode_from_str(xml_str, len);
 	if (!payloadNode){
 		gaim_debug_error("MaYuan","PSM XML parse Error!\n");
 		return NULL;
 	}
 	psmNode = xmlnode_get_child(payloadNode, "PSM");
-	if (!psmNode){
+	if (psmNode == NULL){
 		gaim_debug_info("Ma Yuan","No PSM status Node");
 		g_free(payloadNode);
 		return NULL;
 	}
 	psm_str = xmlnode_get_data(psmNode);
-	gaim_debug_info("Ma Yuan","got PSM {%s}\n", psm_str);
 	psm = g_strdup(psm_str);
 
 	g_free(psmNode);

mercurial