]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_create_bitmap_from_file): Fail immediately if magic.
authorKarl Heuer <kwzh@gnu.org>
Sat, 29 Aug 1998 15:55:28 +0000 (15:55 +0000)
committerKarl Heuer <kwzh@gnu.org>
Sat, 29 Aug 1998 15:55:28 +0000 (15:55 +0000)
src/xfns.c

index 4457d2200d428e1856224bc2cd995e8dc2c54d98..48bda27702a2fdf7c90d3686b51364c7fec114c9 100644 (file)
@@ -590,6 +590,9 @@ x_create_bitmap_from_file (f, file)
   fd = openp (Vx_bitmap_file_path, file, "", &found, 0);
   if (fd < 0)
     return -1;
+  /* XReadBitmapFile won't handle magic file names.  */
+  if (fd == 0)
+    return -1;
   close (fd);
 
   filename = (char *) XSTRING (found)->data;