On Fri, Jan 20, 2012 at 11:07:48AM +0000, Matthew Booth wrote:
---
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";
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top