Commit 679c5a77 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5004] Better fix for CID 1372419

parent 0a6bbd27
......@@ -293,9 +293,10 @@ public:
// Now let's add specified number of data tuples
OpaqueDataTuple::LengthFieldType len = (u == Option::V4?OpaqueDataTuple::LENGTH_1_BYTE:
OpaqueDataTuple::LENGTH_2_BYTES);
const char* content[10] = { "alpha", "beta", "delta", "gamma", "epsilon",
const char* content[] = { "alpha", "beta", "delta", "gamma", "epsilon",
"zeta", "eta", "theta", "iota", "kappa" };
ASSERT_TRUE(tuples_size < 10);
size_t nb_content = sizeof(content) / sizeof(char*);
ASSERT_TRUE(tuples_size < nb_content);
for (unsigned i = 0; i < tuples_size; ++i) {
OpaqueDataTuple tuple(len);
tuple.assign(string(content[i]));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment