aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog2
-rw-r--r--camel/providers/imap4/camel-imap4-folder.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 1a1a467966..fbf6c1e1c1 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -2,7 +2,7 @@
* providers/imap4/camel-imap4-folder.c (uidset_init): init
tail->last to (guint32) -1, so that index = tail->last + 1 will
- start at 0 :-)
+ start at 0 at the top of uidset_add() :-)
2004-06-17 Rodney Dawes <dobey@novell.com>
diff --git a/camel/providers/imap4/camel-imap4-folder.c b/camel/providers/imap4/camel-imap4-folder.c
index e06b5ab563..0d84408cbc 100644
--- a/camel/providers/imap4/camel-imap4-folder.c
+++ b/camel/providers/imap4/camel-imap4-folder.c
@@ -362,10 +362,10 @@ uidset_add (struct _uidset *uidset, CamelMessageInfo *info)
struct _uidset_range *node, *tail = uidset->tail;
const char *iuid = camel_message_info_uid (info);
size_t uidlen, len;
+ const char *colon;
guint32 index;
- char *colon;
- /* Note: depends on integer overflow for initial tail->last value */
+ /* Note: depends on integer overflow for initial 'add' */
for (index = tail->last + 1; index < messages->len; index++) {
if (info == messages->pdata[index])
break;