Mercurial > pidgin
changeset 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 | e744943e749c |
children | 02c7d18f5cc3 |
files | src/upnp.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
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; }