aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tag/TagBuilder.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tag/TagBuilder.cxx b/src/tag/TagBuilder.cxx
index b114e882b..47921f248 100644
--- a/src/tag/TagBuilder.cxx
+++ b/src/tag/TagBuilder.cxx
@@ -46,6 +46,7 @@ TagBuilder::TagBuilder(Tag &&other)
/* move all TagItem pointers from the Tag object; we don't
need to contact the tag pool, because all we do is move
references */
+ items.reserve(other.num_items);
std::copy_n(other.items, other.num_items, std::back_inserter(items));
/* discard the pointers from the Tag object */