pidgin: e1ed9b00: Fix CID #391, #392
rlaager at pidgin.im
rlaager at pidgin.im
Fri Nov 14 02:46:13 EST 2008
-----------------------------------------------------------------
Revision: e1ed9b0078ba244f9f0a3196d3a79709af5973af
Ancestor: 83e8e601ace847eada759a45e6fd4ad52288840f
Author: rlaager at pidgin.im
Date: 2008-11-14T06:29:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e1ed9b0078ba244f9f0a3196d3a79709af5973af
Modified files:
libpurple/xmlnode.c
ChangeLog:
Fix CID #391, #392
-------------- next part --------------
============================================================
--- libpurple/xmlnode.c eb62571e6bee6f7a583243e50025a21ce4ae12bb
+++ libpurple/xmlnode.c 284b8ccd77039adfa9aaa9ab794830851bdd8d13
@@ -249,6 +249,7 @@ xmlnode_get_attrib(xmlnode *node, const
xmlnode *x;
g_return_val_if_fail(node != NULL, NULL);
+ g_return_val_if_fail(attr != NULL, NULL);
for(x = node->child; x; x = x->next) {
if(x->type == XMLNODE_TYPE_ATTRIB && !strcmp(attr, x->name)) {
@@ -265,6 +266,7 @@ xmlnode_get_attrib_with_namespace(xmlnod
xmlnode *x;
g_return_val_if_fail(node != NULL, NULL);
+ g_return_val_if_fail(attr != NULL, NULL);
for(x = node->child; x; x = x->next) {
if(x->type == XMLNODE_TYPE_ATTRIB &&
More information about the Commits
mailing list