From: Juri Linkov Date: Mon, 5 Nov 2018 20:57:10 +0000 (+0200) Subject: * lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename. X-Git-Tag: emacs-27.0.90~4210 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e1d946a9386ff4fbd5f72f39cc96cbdb07f525d;p=emacs.git * lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename. (Bug#33241) --- diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 606c66143aa..92ba577b4f5 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -786,7 +786,7 @@ was inserted." (defun image--imagemagick-wanted-p (filename) (and (fboundp 'imagemagick-types) (not (eq imagemagick-types-inhibit t)) - (not (and (file-name-extension filename) + (not (and filename (file-name-extension filename) (memq (intern (upcase (file-name-extension filename)) obarray) imagemagick-types-inhibit)))))