]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.
authorJuri Linkov <juri@linkov.net>
Mon, 5 Nov 2018 20:57:10 +0000 (22:57 +0200)
committerJuri Linkov <juri@linkov.net>
Mon, 5 Nov 2018 20:57:10 +0000 (22:57 +0200)
(Bug#33241)

lisp/image-mode.el

index 606c66143aa545f793bc60827977eaf1ca696953..92ba577b4f53c57b28d6bedc52e43548d3d7b933 100644 (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)))))