string_list: Fix argument order for for_each_string_list
[gitweb.git] / builtin / fetch.c
index 8470850415c14cad8ceeca9f6baef46ab6feabc3..b040e5a31d417d39a1cd9520dfd6b71ebf2f75a3 100644 (file)
@@ -633,7 +633,7 @@ static void find_non_local_tags(struct transport *transport,
         * For all the tags in the remote_refs string list, call
         * add_to_tail to add them to the list of refs to be fetched
         */
-       for_each_string_list(add_to_tail, &remote_refs, &data);
+       for_each_string_list(&remote_refs, add_to_tail, &data);
 
        string_list_clear(&remote_refs, 0);
 }