From 3d57ec9b7ae57f6ce27116300f2a71adadead0d0 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 4 Dec 2006 04:24:33 +0000 Subject: fixed a warning when getting uncached messages in IMAP4. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1388 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 5 +++++ libsylph/imap.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e9a75ca5..3d913533 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-04 + + * libsylph/imap.c: imap_get_uncached_messages(): fixed a warning + (thanks to Sebastian Kargel). + 2006-11-30 * libsylph/procmsg.c diff --git a/ChangeLog.ja b/ChangeLog.ja index 84f79fcd..480d5795 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2006-12-04 + + * libsylph/imap.c: imap_get_uncached_messages(): 警告を修正(Sebastian + Kargel さん thanks)。 + 2006-11-30 * libsylph/procmsg.c diff --git a/libsylph/imap.c b/libsylph/imap.c index 76f00650..868b5e2b 100644 --- a/libsylph/imap.c +++ b/libsylph/imap.c @@ -2331,7 +2331,7 @@ static GSList *imap_get_uncached_messages(IMAPSession *session, str = g_string_new(NULL); for (;;) { - if (exists > 0) { + if (exists > 0 && count <= exists) { g_get_current_time(&tv_cur); if (tv_cur.tv_sec > tv_prev.tv_sec || tv_cur.tv_usec - tv_prev.tv_usec > -- cgit v1.2.3