Commit bc771e48 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Rusty Russell

list: fix list element counting in provided example inside _info file

This change initializes a counter of children, otherwise is may contain
arbitrary value.
Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
parent b2cc1341
......@@ -38,6 +38,7 @@
*
* p.name = argv[1];
* list_head_init(&p.children);
* p.num_children = 0;
* for (i = 2; i < argc; i++) {
* c = malloc(sizeof(*c));
* c->name = argv[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