X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fvchar.cc;h=24238060df834e5685ba46bd8009a1671e9fe26f;hb=e2688497603c56929e6dd2b4e6139dd85edcb0e0;hp=fde0127f8d0da8fe2054e5eaf023383f60f1c893;hpb=9139975f5fe7895259645117b1e0e9a6cb9c27cc;p=m6w6%2Flibmemcached diff --git a/libtest/vchar.cc b/libtest/vchar.cc index fde0127f..24238060 100644 --- a/libtest/vchar.cc +++ b/libtest/vchar.cc @@ -81,6 +81,7 @@ void make(libtest::vchar_t& arg) void make(libtest::vchar_t& arg, size_t length) { + arg.reserve(length); for (uint32_t x= 0; x < length; x++) { arg.push_back(char(x % 127));