0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.0.0155: ubsan complains about NULL pointer

Problem:    When sorting zero elements a NULL pointer is passed to qsort(),
            which ubsan warns for.
Solution:   Don't call qsort() if there are no elements. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2017-01-08 17:46:20 +01:00
parent 31f19ce0a0
commit a216255a4f
2 changed files with 6 additions and 2 deletions

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
155,
/**/
154,
/**/