summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2019-06-24 22:36:24 +1000
committerDamien Zammit <damien@zamaudio.com>2019-06-24 22:36:24 +1000
commit777686bcd5c333213451e3b5782fa263f10a12fe (patch)
tree60e6fd6cd6e2ec4f15d3179cbbc84851a144455c
parent336d12274536eee5863f507f305da5e661948118 (diff)
Remove incorrect memset() on a vector
-rw-r--r--ptformat.cc2
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;