]> granicus.if.org Git - mutt/commitdiff
Fix #251, from Brendan.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 22 Aug 2000 22:23:10 +0000 (22:23 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 22 Aug 2000 22:23:10 +0000 (22:23 +0000)
muttlib.c

index 9f1bcfd266cd39947326502f7ce5807948d0ace3..0b930a64e55fd2693276803d41a553c36546a66b 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -681,7 +681,7 @@ void mutt_pretty_mailbox (char *s)
   }
   *q = 0;
 
-  if (mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0)
+  if (Maildir && mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0)
   {
     /* chop off delimiters after Maildir. '.' is a hack because IMAP can
      * use arbitrary delimiters, but we may not have a connection. Could