aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fuzz/system.cpp')
-rw-r--r--src/test/fuzz/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/system.cpp b/src/test/fuzz/system.cpp
index 7f378c2b13..01b523cee4 100644
--- a/src/test/fuzz/system.cpp
+++ b/src/test/fuzz/system.cpp
@@ -85,7 +85,7 @@ void test_one_input(const std::vector<uint8_t>& buffer)
case 7: {
const std::vector<std::string> random_arguments = ConsumeRandomLengthStringVector(fuzzed_data_provider);
std::vector<const char*> argv;
- argv.resize(random_arguments.size());
+ argv.reserve(random_arguments.size());
for (const std::string& random_argument : random_arguments) {
argv.push_back(random_argument.c_str());
}