projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cc134
)
list: fix list element counting in provided example inside _info file
author
Vladimir Zapolskiy
<vz@mleia.com>
Tue, 22 Nov 2011 23:58:15 +0000
(
01:58
+0200)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 23 Nov 2011 02:34:21 +0000
(13:04 +1030)
This change initializes a counter of children, otherwise is may contain
arbitrary value.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
ccan/list/_info
patch
|
blob
|
history
diff --git
a/ccan/list/_info
b/ccan/list/_info
index 8b5bd9b5e15a336fbb464ba66bc4d7de7e5d955e..a30659c1cf694e0f1350ab9719f86c01b45a5c07 100644
(file)
--- a/
ccan/list/_info
+++ b/
ccan/list/_info
@@
-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];