]> granicus.if.org Git - mutt/commitdiff
Don't segfault when MailcapPath is unset.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 20 Jan 1999 10:13:02 +0000 (10:13 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 20 Jan 1999 10:13:02 +0000 (10:13 +0000)
rfc1524.c

index ce8a6321feba0d2cd219262ffa85875adeb441fa..7bbc748a17a39e8d9c08a900497e899c90667e26 100644 (file)
--- a/rfc1524.c
+++ b/rfc1524.c
@@ -384,7 +384,7 @@ int rfc1524_mailcap_lookup (BODY *a, char *type, rfc1524_entry *entry, int opt)
    * and overriden by the MAILCAPS environment variable, and, just to be nice, 
    * we'll make it specifiable in .muttrc
    */
-  if (!*curr)
+  if (!curr || !*curr)
   {
     mutt_error _("No mailcap path specified");
     return 0;