texlive[58143] Build/source/texk/dvipdfm-x/pdfdev.c: fix a bug which
commits+kakuto at tug.org
commits+kakuto at tug.org
Fri Mar 5 04:36:46 CET 2021
Revision: 58143
http://tug.org/svn/texlive?view=revision&revision=58143
Author: kakuto
Date: 2021-03-05 04:36:45 +0100 (Fri, 05 Mar 2021)
Log Message:
-----------
fix a bug which I introduced
Modified Paths:
--------------
trunk/Build/source/texk/dvipdfm-x/pdfdev.c
Modified: trunk/Build/source/texk/dvipdfm-x/pdfdev.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/pdfdev.c 2021-03-05 01:48:07 UTC (rev 58142)
+++ trunk/Build/source/texk/dvipdfm-x/pdfdev.c 2021-03-05 03:36:45 UTC (rev 58143)
@@ -1330,9 +1330,11 @@
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);
More information about the tex-live-commits
mailing list.