summaryrefslogtreecommitdiff
path: root/basedetection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'basedetection.cpp')
-rw-r--r--basedetection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/basedetection.cpp b/basedetection.cpp
index 0b660d36..245522fb 100644
--- a/basedetection.cpp
+++ b/basedetection.cpp
@@ -84,6 +84,7 @@ std::vector<BNBaseAddressDetectionReason> BaseAddressDetection::GetReasonsForBas
if (!reasons)
return result;
+ result.reserve(count);
for (size_t i = 0; i < count; i++)
result.push_back(reasons[i]);