[evolution-rss] possible fix for crash when feed has been deleted



commit 2cd74d7829914c5c65c588d83c72a968fe25b41f
Author: Lucian Langa <lucilanga gnome org>
Date:   Fri Sep 9 00:09:28 2011 +0200

    possible fix for crash when feed has been deleted

 src/rss.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index e4dc507..33e957f 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -4392,8 +4392,9 @@ custom_update_articles(CDATA *cdata)
 		network_timeout();
 		// check if we're enabled and no cancelation signal pending
 		// and no imports pending
-		dp("cdata->key:%s\n", (gchar *)cdata->key);
-		if (g_hash_table_lookup(rf->hre, lookup_key(cdata->key))
+		// cdata->key might be missing here if user delete the feed
+		// meanwhile
+		if (lookup_key(cdata->key) && g_hash_table_lookup(rf->hre, lookup_key(cdata->key))
 		&& !rf->cancel && !rf->import) {
 			d("\nFetching: %s..%s\n",
 				(char *)g_hash_table_lookup(rf->hr,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]