Code

string_list: Fix argument order for string_list_append
[git.git] / builtin / apply.c
index cf92f12a1bfd6e84dcdf60bb397587e6c7e3df8d..03639282e1cc3e14d83043047a174bd71a776db3 100644 (file)
@@ -3394,7 +3394,7 @@ static void add_name_limit(const char *name, int exclude)
 {
        struct string_list_item *it;
 
-       it = string_list_append(name, &limit_by_name);
+       it = string_list_append(&limit_by_name, name);
        it->util = exclude ? NULL : (void *) 1;
 }