summaryrefslogtreecommitdiffstats
path: root/transport-helper.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-07-04 21:46:19 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-05 20:47:57 +0200
commit183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2 (patch)
tree2ab3a6f27ab3e8857cf3b5a825435f7bf6ed5b72 /transport-helper.c
parentConvert the users of for_each_string_list to for_each_string_list_item macro (diff)
downloadgit-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.tar.xz
git-183113a5ca99cb228b2ba0a29e53f1ac11f2c7c2.zip
string_list: Add STRING_LIST_INIT macro and make use of it.
Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 191fbf798a..acfc88e3f1 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -689,7 +689,7 @@ static int push_refs_with_export(struct transport *transport,
struct child_process *helper, exporter;
struct helper_data *data = transport->data;
char *export_marks = NULL, *import_marks = NULL;
- struct string_list revlist_args = { NULL, 0, 0 };
+ struct string_list revlist_args = STRING_LIST_INIT_NODUP;
struct strbuf buf = STRBUF_INIT;
helper = get_helper(transport);