[evolution-rss] Bug 642357 - crash on parsing RSS feed



commit 3f619daf5c7601cb6b7fdc6fc4e2f659f26c690b
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Feb 15 11:44:28 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 4cbf08c..776e42d 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -648,7 +648,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]