aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/asn1
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2008-05-14 10:48:59 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2008-05-14 10:48:59 +0000
commit1e825735493fda9d5bbefcf7401a26df02f0d355 (patch)
treec040306105210f4892834502e3de976cb2ef4f30 /plugins/asn1
parentcfc41228762f21ecb413e6030a9f1860445e32ed (diff)
fix missing brackets causing uninitialized hidden_item
svn path=/trunk/; revision=25300
Diffstat (limited to 'plugins/asn1')
-rw-r--r--plugins/asn1/packet-asn1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index 0fd1f08aa1..7d8ad9524e 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -1044,10 +1044,11 @@ decode_asn1_sequence(tvbuff_t *tvb, guint offset, guint tlen, proto_tree *pt, in
offset - boffset, value, textfmt_d, boffset,
clsstr, constr, tagstr, tname, name, value,
matchind);
- if (props.type_id != -1)
+ if (props.type_id != -1) {
hidden_item = proto_tree_add_uint(pt, props.type_id, tvb,
boffset, offset - boffset, value);
- PROTO_ITEM_SET_HIDDEN(hidden_item);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
+ }
}
} else {
if ( (props.value_id == -1) ||