summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/dpxfile.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-11-05 09:00:45 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-11-05 09:00:45 +0000
commit166fe2d6af0d6ac9b2701bd95cd6873e5e8c5808 (patch)
tree50c558dfd44f8a53eaf181b0fdf2f895703fad6f /Build/source/texk/dvipdfm-x/dpxfile.c
parentdaa61875754bee45ee8a4f579571f4953b267aa2 (diff)
texk/dvipdfm-x: Fix a bug in dpxfile.c which causes a crash if a map file is not found
git-svn-id: svn://tug.org/texlive/trunk@35516 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dpxfile.c')
-rw-r--r--Build/source/texk/dvipdfm-x/dpxfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index e2c4c7424b3..11fcb1de5b9 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -413,8 +413,10 @@ dpx_open_file (const char *filename, dpx_res_type type)
switch (type) {
case DPX_RES_TYPE_FONTMAP:
fqpn = dpx_find_fontmap_file(filename);
- if (verbose)
- MESG(fqpn);
+ if (verbose) {
+ if (fqpn != NULL)
+ MESG(fqpn);
+ }
break;
case DPX_RES_TYPE_T1FONT:
fqpn = dpx_find_type1_file(filename);