]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/shortlog.c
string_list: Fix argument order for string_list_insert
[thirdparty/git.git] / builtin / shortlog.c
index 5089502800d5f477f47b6cd6499d278097f11e67..86d32fb7ffdb5ce6523152b80ebbc71979f887f6 100644 (file)
@@ -84,7 +84,7 @@ static void insert_one_record(struct shortlog *log,
                snprintf(namebuf + len, room, " <%.*s>", maillen, emailbuf);
        }
 
-       item = string_list_insert(namebuf, &log->list);
+       item = string_list_insert(&log->list, namebuf);
        if (item->util == NULL)
                item->util = xcalloc(1, sizeof(struct string_list));