diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-06-29 10:06:14 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-06-29 10:06:14 +0000 |
commit | 2bcfb54cb0d9164ab4026ebb1893a66c6a9acd20 (patch) | |
tree | 2a7d03d611a24967134d625be2a869aab462e693 /imap | |
parent | b8981e7016fe0fe530157834961e6c5fa785db6a (diff) |
patch-bac-vvvacounthook-20010628.1
Diffstat (limited to 'imap')
-rw-r--r-- | imap/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/imap.c b/imap/imap.c index d9e5a40e..cfb65efa 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -650,7 +650,7 @@ int imap_open_mailbox (CONTEXT* ctx) ctx->hdrs = safe_malloc (count * sizeof (HEADER *)); ctx->v2r = safe_malloc (count * sizeof (int)); ctx->msgcount = 0; - if (imap_read_headers (idata, 0, count - 1) < 0) + if (count && (imap_read_headers (idata, 0, count-1) < 0)) { mutt_error _("Error opening mailbox"); mutt_sleep (1); |