diff --git a/src/test/fuzz/system.cpp b/src/test/fuzz/system.cpp --- a/src/test/fuzz/system.cpp +++ b/src/test/fuzz/system.cpp @@ -117,7 +117,7 @@ const std::vector random_arguments = ConsumeRandomLengthStringVector(fuzzed_data_provider); std::vector 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()); }