projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b223e5d
)
Fix comparison for RSS feed items without text
author
Andrej Kacian
<ticho@claws-mail.org>
Mon, 26 Aug 2019 15:42:52 +0000
(17:42 +0200)
committer
Andrej Kacian
<ticho@claws-mail.org>
Mon, 26 Aug 2019 15:42:52 +0000
(17:42 +0200)
src/plugins/rssyl/rssyl_add_item.c
patch
|
blob
|
history
diff --git
a/src/plugins/rssyl/rssyl_add_item.c
b/src/plugins/rssyl/rssyl_add_item.c
index c40c9cd60b76771fe8df388f8e0a2e9c1a0da228..d8f28eabc99f585cfeb2c2089168664012465ce0 100644
(file)
--- 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);