talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit c7ce85fb14caa8e2ac80951060a1a36236e62baf
parent eaaefcdf4c4c8d5ee9e4216cffccbd16b504f350
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 26 Aug 2019 17:42:52 +0200

Fix comparison for RSS feed items without text

Diffstat:
Msrc/plugins/rssyl/rssyl_add_item.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/plugins/rssyl/rssyl_add_item.c b/src/plugins/rssyl/rssyl_add_item.c @@ -361,6 +361,10 @@ void rssyl_add_item(RFolderItem *ritem, FeedItem *feed_item) feed_item->summary = NULL; } + /* If there is still no text, use an empty string for consistency. */ + if( feed_item_get_text(feed_item) == NULL ) + feed_item_set_text(feed_item, ""); + /* Do not add if the item already exists, update if it does exist, but * has changed. */ dif = rssyl_feed_item_exists(ritem, feed_item, &old_item);