changeset 28958:56c76b64f321

(image-type-available-p): Don't reference image-types if it isn't bound.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 17 May 2000 15:57:18 +0000
parents 71d552e41a3d
children 44fce819e7b1
files lisp/image.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/image.el	Wed May 17 15:24:43 2000 +0000
+++ b/lisp/image.el	Wed May 17 15:57:18 2000 +0000
@@ -72,7 +72,7 @@
 (defun image-type-available-p (type)
   "Value is non-nil if image type TYPE is available.
 Image types are symbols like `xbm' or `jpeg'."
-  (not (null (memq type image-types))))
+  (and (boundp 'image-types) (not (null (memq type image-types)))))
 
 
 ;;;###autoload