From 0081c966538afabca7f8cf48bcec4fc32a31bb43 Mon Sep 17 00:00:00 2001 From: jrl Date: Tue, 31 Oct 2006 12:11:29 +0000 Subject: [PATCH] 2006-10-31 James Livingston patch by: Nguyen Thai Ngoc Duy * rhythmdb/rhythmdb.c: don't remove stale db entries when the grace period is 0. Fixes #351425 --- ChangeLog | 7 +++++++ rhythmdb/rhythmdb.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 203251d0..e62cea7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2006-10-31 James Livingston + patch by: Nguyen Thai Ngoc Duy + + * rhythmdb/rhythmdb.c: don't remove stale db entries when the grace + period is 0. Fixes #351425 + +2006-10-31 James Livingston + patch by: Luca Ferretti * plugins/artdisplay/artdisplay.rb-plugin.desktop.in: diff --git a/rhythmdb/rhythmdb.c b/rhythmdb/rhythmdb.c index 1b8f1c9d..3f23e20d 100644 --- a/rhythmdb/rhythmdb.c +++ b/rhythmdb/rhythmdb.c @@ -1511,7 +1511,7 @@ is_ghost_entry (RhythmDBEntry *entry) /* This is a bit silly, but I prefer to make sure we won't * overflow in the following calculations */ - if ((grace_period < 0) || (grace_period > 20000)) { + if ((grace_period <= 0) || (grace_period > 20000)) { return FALSE; } -- 2.11.4.GIT