mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-07 22:27:11 +02:00
Preallocate mysql account options table.
This commit is contained in:
1 parent
602bb077b0
commit
4bf1443260
1 file changed
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user