From: <fac...@us...> - 2006-05-29 23:27:36
|
Revision: 16203 Author: faceprint Date: 2006-05-29 16:27:30 -0700 (Mon, 29 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16203&view=rev Log Message: ----------- g_assert killage Modified Paths: -------------- trunk/src/upnp.c Modified: trunk/src/upnp.c =================================================================== --- trunk/src/upnp.c 2006-05-29 17:53:50 UTC (rev 16202) +++ trunk/src/upnp.c 2006-05-29 23:27:30 UTC (rev 16203) @@ -187,10 +187,16 @@ static gboolean gaim_upnp_compare_service(const xmlnode* service, const gchar* serviceType) { - xmlnode* serviceTypeNode = xmlnode_get_child(service, "serviceType"); + xmlnode* serviceTypeNode; char *tmp; gboolean ret; + if(service == NULL) { + return FALSE; + } + + serviceTypeNode = xmlnode_get_child(service, "serviceType"); + if(serviceTypeNode == NULL) { return FALSE; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |