diff options
-rw-r--r-- | ptformat.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptformat.cc b/ptformat.cc index 977d1bc..33717d9 100644 --- a/ptformat.cc +++ b/ptformat.cc @@ -594,7 +594,7 @@ PTFFormat::parse_block_at(uint32_t pos, struct block_t *block, struct block_t *p block->block_size = b.block_size; block->content_type = b.content_type; block->offset = b.offset; - memset(&block->child, 0, sizeof(block->child)); + block->child.clear(); for (i = 1; (i < block->block_size) && (pos + i + childjump < max); i += childjump ? childjump : 1) { int p = pos + i; |