fix regression in hdrcnt patch

This commit is contained in:
Honza Horák 2011-04-01 15:43:03 +02:00
parent 387f7fe7ef
commit 8056a91e0a

View File

@ -1,12 +1,12 @@
diff -up mutt-1.5.21/imap/message.c.hdrcnt mutt-1.5.21/imap/message.c
--- mutt-1.5.21/imap/message.c.hdrcnt 2010-08-24 18:34:21.000000000 +0200
+++ mutt-1.5.21/imap/message.c 2011-03-28 14:26:41.059338455 +0200
+++ mutt-1.5.21/imap/message.c 2011-04-01 15:23:14.254360560 +0200
@@ -65,7 +65,7 @@ int imap_read_headers (IMAP_DATA* idata,
char *hdrreq = NULL;
FILE *fp;
char tempfile[_POSIX_PATH_MAX];
- int msgno, idx;
+ int msgno, idx = -1;
+ int msgno, idx = msgbegin - 1;
IMAP_HEADER h;
IMAP_STATUS* status;
int rc, mfhrc, oldmsgcount;