]> granicus.if.org Git - mutt/commitdiff
Fix imap/2112.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 14 Oct 2005 09:30:11 +0000 (09:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 14 Oct 2005 09:30:11 +0000 (09:30 +0000)
imap/imap.c

index 743137c44eb1e30ab788e2043eef3b73dbde44d5..a458f48f58d6410ecb4cc356610a19f7bc968582 100644 (file)
@@ -1598,7 +1598,7 @@ imap_complete_hosts (char *dest, size_t len)
   int matchlen;
   
   matchlen = mutt_strlen (dest);
-  for (mailbox = Incoming; mailbox->next; mailbox = mailbox->next)
+  for (mailbox = Incoming; mailbox && mailbox->next; mailbox = mailbox->next)
   {
     if (!mutt_strncmp (dest, mailbox->path, matchlen))
     {