summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-08-16 13:42:08 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-08-16 13:42:08 +0000
commit6a15feffa2e818e22126d9fce7054bbcf9009118 (patch)
treeb7e2ccba7e663a24c527052d8952a2ea080654b2 /print.c
parentc66df8b03055cec5456ae521599bf942691ae66c (diff)
downloadwireshark-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.c b/print.c
index a8788b2aad..7243b8c0bf 100644
--- a/print.c
+++ b/print.c
@@ -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