diff options
-rw-r--r-- | epan/proto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/proto.c b/epan/proto.c index edf6796278..7f71a482a2 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2383,6 +2383,8 @@ proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, if (bytes) proto_tree_set_bytes_gbytearray(new_fi, bytes); + else + proto_tree_set_bytes(new_fi, NULL, 0); if (created_bytes) g_byte_array_free(created_bytes, TRUE); |