diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-16 13:42:08 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-08-16 13:42:08 +0000 |
commit | 6a15feffa2e818e22126d9fce7054bbcf9009118 (patch) | |
tree | b7e2ccba7e663a24c527052d8952a2ea080654b2 /print.c | |
parent | c66df8b03055cec5456ae521599bf942691ae66c (diff) | |
download | wireshark-6a15feffa2e818e22126d9fce7054bbcf9009118.tar.gz |
Check for valid filename in write_pdml_preamble().
Part of fix for bug 6245.
svn path=/trunk/; revision=38563
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -256,7 +256,7 @@ write_pdml_preamble(FILE *fh, const gchar* filename) fputs("<?xml-stylesheet type=\"text/xsl\" href=\"" PDML2HTML_XSL "\"?>\n", fh); fprintf(fh, "<!-- You can find " PDML2HTML_XSL " in %s or at http://anonsvn.wireshark.org/trunk/wireshark/" PDML2HTML_XSL ". -->\n", get_datafile_dir()); fputs("<pdml version=\"" PDML_VERSION "\" ", fh); - fprintf(fh, "creator=\"%s/%s\" time=\"%s\" capture_file=\"%s\">\n", PACKAGE, VERSION, ts, filename); + fprintf(fh, "creator=\"%s/%s\" time=\"%s\" capture_file=\"%s\">\n", PACKAGE, VERSION, ts, filename ? filename : ""); } void |