Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
23140:17ad9953ff42 | 23141:9676fa7e02bf |
---|---|
587 } | 587 } |
588 | 588 |
589 /* Search bitmap-file-path for the file, if appropriate. */ | 589 /* Search bitmap-file-path for the file, if appropriate. */ |
590 fd = openp (Vx_bitmap_file_path, file, "", &found, 0); | 590 fd = openp (Vx_bitmap_file_path, file, "", &found, 0); |
591 if (fd < 0) | 591 if (fd < 0) |
592 return -1; | |
593 /* XReadBitmapFile won't handle magic file names. */ | |
594 if (fd == 0) | |
592 return -1; | 595 return -1; |
593 close (fd); | 596 close (fd); |
594 | 597 |
595 filename = (char *) XSTRING (found)->data; | 598 filename = (char *) XSTRING (found)->data; |
596 | 599 |