diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dpxfile.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/dpxfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c index 11fcb1de5b9..34ab9b0d6b3 100644 --- a/Build/source/texk/dvipdfm-x/dpxfile.c +++ b/Build/source/texk/dvipdfm-x/dpxfile.c @@ -1168,6 +1168,9 @@ qcheck_filetype (const char *fqpn, dpx_res_type type) if (stat(fqpn, &sb) != 0) return 0; + if (sb.st_size == 0) + return 0; + fp = MFOPEN(fqpn, FOPEN_RBIN_MODE); if (!fp) { WARN("File \"%s\" found but I could not open that...", fqpn); |