Mercurial > pidgin
diff src/upnp.c @ 13791:b39a92702939
[gaim-migrate @ 16203]
g_assert killage
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 29 May 2006 23:27:30 +0000 |
parents | 095fd5936962 |
children | 10e8eb6a4910 |
line wrap: on
line diff
--- a/src/upnp.c Mon May 29 17:53:50 2006 +0000 +++ b/src/upnp.c Mon May 29 23:27:30 2006 +0000 @@ -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; }