diff options
| author | Karl Heuer | 1998-08-29 15:55:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-08-29 15:55:28 +0000 |
| commit | 66cb9c073130581af4df23f0115b021761b330d5 (patch) | |
| tree | 70e488298f2a7d2b6e1a1dcccf2a6ad387176040 /src | |
| parent | f78643efc0e0aec95c64c22e957080a219ee922d (diff) | |
| download | emacs-66cb9c073130581af4df23f0115b021761b330d5.tar.gz emacs-66cb9c073130581af4df23f0115b021761b330d5.zip | |
(x_create_bitmap_from_file): Fail immediately if magic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 4457d2200d4..48bda27702a 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -590,6 +590,9 @@ x_create_bitmap_from_file (f, file) | |||
| 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; | 592 | return -1; |
| 593 | /* XReadBitmapFile won't handle magic file names. */ | ||
| 594 | if (fd == 0) | ||
| 595 | return -1; | ||
| 593 | close (fd); | 596 | close (fd); |
| 594 | 597 | ||
| 595 | filename = (char *) XSTRING (found)->data; | 598 | filename = (char *) XSTRING (found)->data; |