diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-03-05 03:36:45 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-03-05 03:36:45 +0000 |
commit | c0c1d177b2bb747dd7865bb8666a4f335cb0f07b (patch) | |
tree | 61b97418930ec3191967d41e5ec76a9ead65418b /Build | |
parent | 1b16a247bb43e6e7305a851c1a8831a7ab5c450a (diff) |
fix a bug which I introduced
git-svn-id: svn://tug.org/texlive/trunk@58143 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdev.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c index 39631c724ce..f6d654e7c30 100644 --- a/Build/source/texk/dvipdfm-x/pdfdev.c +++ b/Build/source/texk/dvipdfm-x/pdfdev.c @@ -1330,9 +1330,11 @@ pdf_dev_locate_font (const char *font_name, spt_t ptsize) arguments when pdftex.map is used and when type1 is not found. Thus we discard the extension ".pfb". */ - pp = strrchr(mrec->font_name, '.'); - if (pp && strcasecmp(pp, ".pfb") == 0) - *pp = '\0'; + if (mrec && mrec->font_name) { + pp = strrchr(mrec->font_name, '.'); + if (pp && strcasecmp(pp, ".pfb") == 0) + *pp = '\0'; + } if (dpx_conf.verbose_level > 1) print_fontmap(font_name, mrec); |