summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-07-11 10:00:21 +0200
committerGitHub <noreply@github.com>2017-07-11 10:00:21 +0200
commitf3b57eaf4591eee1b557b70493c2575859305b02 (patch)
tree44c815d45c3645598409eb9eb33ee4453399a75d /src/basic
parent3f7a2973a51ed29d401770b982d58d4d91e10dad (diff)
parent9f5ebb8ac9362a22e6d1391c7ff13160a9d6dacf (diff)
downloadsystemd-f3b57eaf4591eee1b557b70493c2575859305b02.tar.gz
systemd-f3b57eaf4591eee1b557b70493c2575859305b02.tar.bz2
systemd-f3b57eaf4591eee1b557b70493c2575859305b02.zip
Merge pull request #6325 from keszybz/make-delta-boring-again
Make delta output repeatable
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/strv.c6
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;
}