aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-27 18:44:57 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-27 18:44:57 +0000
commit2a810960ce82b4acd7ca60e7185ccbf64ebab150 (patch)
tree1deeffd2b4cca40b4e0f831a506f37d789f1b1fc /epan/dissectors/packet-ber.c
parenta5f62bb5b3347f6284f10a3b268308de87c61477 (diff)
...and don't print a separating comma if you haven't already printed an
item. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15572 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ber.c')
-rw-r--r--epan/dissectors/packet-ber.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index 69ecca0510..7289723b19 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -1932,16 +1932,17 @@ int dissect_ber_bitstring(gboolean implicit_tag, packet_info *pinfo, proto_tree
if(val) {
if(item && nb->tstr) {
proto_item_append_text(item, "%s%s", sep, nb->tstr);
+ sep = ", ";
term = TRUE;
}
} else {
if(item && nb->fstr) {
proto_item_append_text(item, "%s%s", sep, nb->fstr);
+ sep = ", ";
term = TRUE;
}
}
nb++;
- sep = ", ";
}
if(term)
proto_item_append_text(item, ")");