[evolution-rss/evolution-rss-0-2-0] fix parsing of ref=alternate node
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss/evolution-rss-0-2-0] fix parsing of ref=alternate node
- Date: Thu, 27 Jan 2011 08:40:24 +0000 (UTC)
commit f8c1ea3043bfc0bcc1721fe01e2ac5d4c7571d02
Author: Lucian Langa <lucilanga gnome org>
Date: Thu Jan 27 10:40:02 2011 +0200
fix parsing of ref=alternate node
src/parser.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index 2088b01..1ebb4c9 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -692,13 +692,15 @@ layer_query_find_prop (xmlNodePtr node,
if (!g_ascii_strcasecmp((gchar *)node->name, match)) {
gchar *tprop = (gchar *)xmlGetProp(node, attr);
if (tprop) {
- if (g_ascii_strcasecmp(tprop, attrprop))
- break;
+ if (g_ascii_strcasecmp(tprop, attrprop)) {
+ xmlFree(tprop);
+ goto next;
+ }
}
xmlFree(tprop);
return (gchar *)xmlGetProp(node, prop);
}
- node = node->next;
+next: node = node->next;
}
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]