Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/config-warn-on-inaccessible-paths'
[gitweb.git]
/
Documentation
/
technical
/
api-string-list.txt
diff --git
a/Documentation/technical/api-string-list.txt
b/Documentation/technical/api-string-list.txt
index 32b35d91811aa775a13f2656966c3a49a5fea730..155ac8cb10d53053eb37bf0ea52d42623d6cb3c9 100644
(file)
--- a/
Documentation/technical/api-string-list.txt
+++ b/
Documentation/technical/api-string-list.txt
@@
-44,10
+44,9
@@
member (you need this if you add things later) and you should set the
Example:
----
-struct string_list list;
+struct string_list list
= STRING_LIST_INIT_NODUP
;
int i;
-memset(&list, 0, sizeof(struct string_list));
string_list_append(&list, "foo");
string_list_append(&list, "bar");
for (i = 0; i < list.nr; i++)