]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix emplacement
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Sep 2021 11:15:30 +0000 (12:15 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 19 Sep 2021 11:15:30 +0000 (12:15 +0100)
src/libserver/html/html.cxx

index c3485b099614945905c9e2467ab7122ae8c8f653..7c9c7cef3ae513e8db63c34b88d87e979b742e37 100644 (file)
@@ -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;