summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-16 23:18:32 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-08-16 23:49:36 +0200
commita6a4f528899b1dab47408733b4a423c66ea40f7a (patch)
tree4c8ca0424b12859ecdf9cf7f3a85fc38302918fc /src
parentf1e3bee216b9eac1d5b00415617cb2ff5e894c10 (diff)
networkctl: use safe_qsort in case no links are present
Unlikely to happen but still...
Diffstat (limited to 'src')
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 6253cbf582..2a7a1daf0f 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -141,7 +141,7 @@ static int decode_and_sort_links(sd_rtnl_message *m, LinkInfo **ret) {
c++;
}
- qsort(links, c, sizeof(LinkInfo), link_info_compare);
+ qsort_safe(links, c, sizeof(LinkInfo), link_info_compare);
*ret = links;
links = NULL;