1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.

(Bug#33241)
This commit is contained in:
Juri Linkov 2018-11-05 22:57:10 +02:00
parent 294a5246b2
commit 0e1d946a93

View file

@ -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)))))