From 4bf14432607b44b2dbd24bf55c820d9452d1ea37 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 13 Apr 2020 13:57:42 +0300 Subject: [PATCH] Preallocate mysql account options table. --- module/Library/MySQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Library/MySQL.cpp b/module/Library/MySQL.cpp index 978e433b..57e17a42 100644 --- a/module/Library/MySQL.cpp +++ b/module/Library/MySQL.cpp @@ -1551,7 +1551,7 @@ void Account::SetSSL(CSStr key, CSStr cert, CSStr ca, CSStr ca_path, CSStr ciphe Table Account::GetOptionsTable() const { // Allocate an empty table - Table tbl(DefaultVM::Get()); + Table tbl(DefaultVM::Get(), m_Options.size()); // Insert every option into the table for (const auto & opt : m_Options) {