summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-06-14 03:17:33 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-06-14 03:17:33 +0000
commit987d9e58540c6b0c8984e1385478e2985bbfca05 (patch)
treee50139dc547f73e44df1dc984b7e7c2d21b4c3ee /Build/source
parent748284129fdbd3cd67c6fa496446028fddab439e (diff)
web2c/luatexdir/dvi/dvigen.w: Sync with the upstream trunk. Avoid seg. fault when output-comment=="".
git-svn-id: svn://tug.org/texlive/trunk@37519 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/luatexdir/dvi/dvigen.w3
1 files changed, 1 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/dvi/dvigen.w b/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
index b158524d99c..4277d6a6bbe 100644
--- a/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
+++ b/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
@@ -1261,8 +1261,7 @@ void ensure_dvi_header_written(PDF pdf)
dvi_four(473628672); /* conversion ratio for sp */
prepare_mag();
dvi_four(mag); /* magnification factor is frozen */
- if (output_comment) {
- l = (unsigned) strlen(output_comment);
+ if (output_comment && (l = (unsigned) strlen(output_comment)) ) {
dvi_out(l);
for (s = 0; s <= l - 1; s++)
dvi_out(output_comment[s]);