From 777686bcd5c333213451e3b5782fa263f10a12fe Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Mon, 24 Jun 2019 22:36:24 +1000 Subject: Remove incorrect memset() on a vector --- ptformat.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3