summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/html/html.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index c3485b099..7c9c7cef3 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -174,7 +174,7 @@ html_check_balance(struct html_content *hc,
*/
if (hc->all_tags.empty()) {
- hc->all_tags.emplace_back();
+ hc->all_tags.push_back(std::make_unique<html_tag>());
auto *vtag = hc->all_tags.back().get();
vtag->id = Tag_HTML;
vtag->flags = FL_VIRTUAL;