aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--epan/print.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/print.c b/epan/print.c
index 1b875ccd59..41b64ea4db 100644
--- a/epan/print.c
+++ b/epan/print.c
@@ -312,11 +312,13 @@ void
write_pdml_proto_tree(output_fields_t* fields, gchar **protocolfilter, pf_flags protocolfilter_flags, epan_dissect_t *edt, FILE *fh, gboolean use_color)
{
write_pdml_data data;
- const color_filter_t *cfp = edt->pi.fd->color_filter;
+ const color_filter_t *cfp;
g_assert(edt);
g_assert(fh);
+ cfp = edt->pi.fd->color_filter;
+
/* Create the output */
if (use_color && (cfp != NULL)) {
fprintf(fh, "<packet foreground='#%02x%02x%02x' background='#%02x%02x%02x'>\n",