aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'print.c')
-rw-r--r--print.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/print.c b/print.c
index a4c153e0f9..1d5fb78771 100644
--- a/print.c
+++ b/print.c
@@ -257,7 +257,9 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data)
label_ptr = "";
}
- fputs("<field show=\"", pdata->fh);
+ /* Show empty name since it is a required field */
+ fputs("<field name=\"", pdata->fh);
+ fputs("\" show=\"", pdata->fh);
print_escaped_xml(pdata->fh, label_ptr);
fprintf(pdata->fh, "\" size=\"%d", fi->length);