Merge pull request #8688 from sfc-gh-ajbeamon/fix-uninitialized-string

Fix valgrind error in TransactionCost test
This commit is contained in:
A.J. Beamon 2022-11-03 15:02:11 -07:00 committed by GitHub
commit 3efbade1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class TransactionCostWorkload : public TestWorkload {
return bw.toValue().withPrefix(prefix);
}
static Value getValue(uint32_t size) { return makeString(size); }
static Value getValue(uint32_t size) { return ValueRef(std::string(size, '\x00')); }
static UID getDebugID(uint64_t testNumber) { return UID(testNumber << 32, testNumber << 32); }