commit 5e8c168: [Minor] Oops, fix emplacement
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Sep 19 11:21:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-09-19 12:15:30 +0100
URL: https://github.com/rspamd/rspamd/commit/5e8c168fccd33e24e2c6185da80778a71237b68c (HEAD -> master)
[Minor] Oops, fix emplacement
---
src/libserver/html/html.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the Commits
mailing list