diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-08-10 23:38:02 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-08-10 23:38:02 +0000 |
commit | 5c0917e880783f42381079252c5a6cbd6f8a92f3 (patch) | |
tree | 86df04bcf70b32519850aba51b298d7dbc9302ba /Build/source/texk/dvipdfm-x | |
parent | d2938c5fcfa93090c7f5d006d80884a190caefaa (diff) |
pdf_filename should not be NULL to compare it with a string.
git-svn-id: svn://tug.org/texlive/trunk@31410 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/dvipdfmx.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 6e2e44c16bb..da463dcd6c3 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,8 @@ +2013-08-11 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * dvipdfmx.c: pdf_filename should not be NULL to compare it with + a string. + 2013-08-10 Peter Breitenlohner <peb@mppmu.mpg.de> * dvipdfmx.[ch]: Declare and define 'char *my_name' as diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx.c b/Build/source/texk/dvipdfm-x/dvipdfmx.c index 80160fc7208..b83d32d70d5 100644 --- a/Build/source/texk/dvipdfm-x/dvipdfmx.c +++ b/Build/source/texk/dvipdfm-x/dvipdfmx.c @@ -955,7 +955,7 @@ main (int argc, char *argv[]) } else if (!pdf_filename) set_default_pdf_filename(); - if (!strcmp(pdf_filename, "-")) { + if (pdf_filename && !strcmp(pdf_filename, "-")) { RELEASE(pdf_filename); pdf_filename = NULL; } |