diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/feeds.c | 7 |
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 | ||
432 | static int cmp_FeedEntryPtr_(const void *a, const void *b) { | 432 | static 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 | ||
437 | iDeclareType(FeedHashNode) | 442 | iDeclareType(FeedHashNode) |