1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Preallocate mysql account options table.

This commit is contained in:
Sandu Liviu Catalin 2020-04-13 13:57:42 +03:00
parent 602bb077b0
commit 4bf1443260

View File

@ -1551,7 +1551,7 @@ void Account::SetSSL(CSStr key, CSStr cert, CSStr ca, CSStr ca_path, CSStr ciphe
Table Account::GetOptionsTable() const Table Account::GetOptionsTable() const
{ {
// Allocate an empty table // Allocate an empty table
Table tbl(DefaultVM::Get()); Table tbl(DefaultVM::Get(), m_Options.size());
// Insert every option into the table // Insert every option into the table
for (const auto & opt : m_Options) for (const auto & opt : m_Options)
{ {