---
generator/generator_bindtests.ml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/generator/generator_bindtests.ml b/generator/generator_bindtests.ml
index 1328b96..45fb818 100644
--- a/generator/generator_bindtests.ml
+++ b/generator/generator_bindtests.ml
@@ -160,6 +160,9 @@ print_strings (char *const *argv)
pr " r = safe_calloc (g, sizeof *r, 1);\n";
pr " r->len = len;\n";
pr " r->val = safe_calloc (g, r->len, sizeof
*r->val);\n";
+ pr " for (size_t i = 0; i < r->len; i++) {\n";
+ pr " r->val[i].pv_size = i;\n";
+ pr " }\n";
pr " return r;\n"
| RHashtable _ ->
pr " char **strs;\n";
--
1.7.7.5