mergetool: don't require a work tree for --tool-help
[gitweb.git] / transport-helper.c
index b468e4f88e730f88a1d231a574585ace56e7066a..b9ba0416b24fb2d53b410b3b97424e9efd552b43 100644 (file)
@@ -1026,7 +1026,7 @@ static struct ref *get_refs_list(struct transport *transport, int for_push)
 
 int transport_helper_init(struct transport *transport, const char *name)
 {
-       struct helper_data *data = xcalloc(sizeof(*data), 1);
+       struct helper_data *data = xcalloc(1, sizeof(*data));
        data->name = name;
 
        if (getenv("GIT_TRANSPORT_HELPER_DEBUG"))