summaryrefslogtreecommitdiff
path: root/src/feeds.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-18 17:29:21 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-18 17:29:21 +0200
commit37869eb4d7893bf7aa7a683d33e46ac404e97756 (patch)
tree3d8b72855011d605548ea7902313c5b8fdc54890 /src/feeds.c
parent26129dd7f835b7a952f197dd2a45384d8683a122 (diff)
Feeds: Same URL from different feeds
Each feed gets its own copy of an URL.
Diffstat (limited to 'src/feeds.c')
-rw-r--r--src/feeds.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/feeds.c b/src/feeds.c
index 4416521e..73c68987 100644
--- a/src/feeds.c
+++ b/src/feeds.c
@@ -431,7 +431,12 @@ static void stopWorker_Feeds_(iFeeds *d) {
431 431
432static int cmp_FeedEntryPtr_(const void *a, const void *b) { 432static int cmp_FeedEntryPtr_(const void *a, const void *b) {
433 const iFeedEntry * const *elem[2] = { a, b }; 433 const iFeedEntry * const *elem[2] = { a, b };
434 return cmpString_String(&(*elem[0])->url, &(*elem[1])->url); 434 const int cmp = cmpString_String(&(*elem[0])->url, &(*elem[1])->url);
435 if (cmp == 0) {
436 /* The same URL can be coming from different feeds. */
437 return iCmp((*elem[0])->bookmarkId, (*elem[1])->bookmarkId);
438 }
439 return cmp;
435} 440}
436 441
437iDeclareType(FeedHashNode) 442iDeclareType(FeedHashNode)