(mm-decode-content-transfer-encoding): Protect against the case where the 2nd
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Dec 2005 00:48:31 +0000 (00:48 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Dec 2005 00:48:31 +0000 (00:48 +0000)
 arg TYPE is nil.

lisp/ChangeLog
lisp/mm-bodies.el

index 9bfede6..2b01520 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-bodies.el (mm-decode-content-transfer-encoding): Protect
+       against the case where the 2nd arg TYPE is nil.
+
 2005-12-09  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * pop3.el (pop3-stream-type): Fix custom version.
index ee21e0d..2bcb7a9 100644 (file)
@@ -225,6 +225,7 @@ If TYPE is `text/plain' CRLF->LF translation may occur."
         (message "Error while decoding: %s" error)
         nil))
     (when (and
+          type
           (memq encoding '(base64 x-uuencode x-uue x-binhex x-yenc))
           (string-match "\\`text/" type))
       (goto-char (point-min))