diff options
Diffstat (limited to 'src/basic/strv.c')
-rw-r--r-- | src/basic/strv.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c index 0eec868eed..c63f11c6ad 100644 --- a/src/basic/strv.c +++ b/src/basic/strv.c @@ -770,11 +770,7 @@ static int str_compare(const void *_a, const void *_b) { } char **strv_sort(char **l) { - - if (strv_isempty(l)) - return l; - - qsort(l, strv_length(l), sizeof(char*), str_compare); + qsort_safe(l, strv_length(l), sizeof(char*), str_compare); return l; } |