diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-16 23:18:32 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-08-16 23:49:36 +0200 |
commit | a6a4f528899b1dab47408733b4a423c66ea40f7a (patch) | |
tree | 4c8ca0424b12859ecdf9cf7f3a85fc38302918fc /src | |
parent | f1e3bee216b9eac1d5b00415617cb2ff5e894c10 (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.c | 2 |
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; |