Code

string_list: Fix argument order for string_list_append
[git.git] / builtin / shortlog.c
index 86d32fb7ffdb5ce6523152b80ebbc71979f887f6..0a9681ba7ece52e751b1b54d53f3e8fb4c19464e 100644 (file)
@@ -115,7 +115,7 @@ static void insert_one_record(struct shortlog *log,
                }
        }
 
-       string_list_append(buffer, item->util);
+       string_list_append(item->util, buffer);
 }
 
 static void read_from_stdin(struct shortlog *log)