summaryrefslogtreecommitdiff
path: root/plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.cpp')
-rw-r--r--plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin.cpp b/plugin.cpp
index 2378fdab..972ce28b 100644
--- a/plugin.cpp
+++ b/plugin.cpp
@@ -211,6 +211,7 @@ vector<PluginCommand> PluginCommand::GetList()
vector<PluginCommand> result;
size_t count;
BNPluginCommand* commands = BNGetAllPluginCommands(&count);
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
result.emplace_back(commands[i]);
BNFreePluginCommandList(commands);