Mercurial > emacs
diff src/xfns.c @ 23141:9676fa7e02bf
(x_create_bitmap_from_file): Fail immediately if magic.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 29 Aug 1998 15:55:28 +0000 |
parents | 2afa25ce99aa |
children | 879b88bb7ab2 |
line wrap: on
line diff
--- a/src/xfns.c Sat Aug 29 01:26:19 1998 +0000 +++ b/src/xfns.c Sat Aug 29 15:55:28 1998 +0000 @@ -590,6 +590,9 @@ 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;