[evolution-rss/evolution-rss-0-2-0] Bug 642357 - crash on parsing RSS feed
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss/evolution-rss-0-2-0] Bug 642357 - crash on parsing RSS feed
- Date: Mon, 21 Feb 2011 18:00:16 +0000 (UTC)
commit 36dc80f4ba6339de0cdf84ac364703b61eef14a4
Author: Lucian Langa <lucilanga gnome org>
Date: Tue Feb 15 11:44:13 2011 +0200
Bug 642357 - crash on parsing RSS feed
src/parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/parser.c b/src/parser.c
index b2f4beb..35afc02 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -643,7 +643,7 @@ layer_find_innerhtml (xmlNodePtr node,
while (node!=NULL) {
if (strcasecmp ((char *)node->name, match)==0 && node->children) {
tmpnode = node->children;
- while (tmpnode) {
+ while (tmpnode && tmpnode->name) {
if ((tmp = (gchar *)layer_find(tmpnode, submatch, NULL)))
return tmp;
tmpnode = tmpnode->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]