Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Sort an empty list without handing qsort a null
Every list sorted here is null until its first entry, and C leaves a null base undefined even with nothing to sort. glibc declares it nonnull, and a UBSan build aborted the stats page of a repository with no commits in the window.
Diffstat (limited to 'source/shared.h')
-rw-r--r--source/shared.h12
1 file changed, 12 insertions, 0 deletions