Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Sort with git's QSORT
QSORT skips a list of fewer than two entries, so an empty list's null
base never reaches qsort, which is what cgit_qsort was written for.
Diffstat (limited to '')
| -rw-r--r-- | source/cgit.c | 2 |
1 file changed, 1 insertion, 1 deletion
diff --git a/source/cgit.c b/source/cgit.c index e0b6adb..da86943 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -311,7 +311,7 @@ static void parse_args(int argc, const char **argv) } } if (scanned) { - cgit_qsort(cgit_repolist.repos, cgit_repolist.count, sizeof(struct cgit_repo), cmp_repos); + QSORT(cgit_repolist.repos, cgit_repolist.count, cmp_repos); print_repolist(stdout, &cgit_repolist, 0); exit(0); } |
