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/network/networkctl.c | |
parent | sd-bus,log: remove unused variables (diff) | |
download | systemd-a6a4f528899b1dab47408733b4a423c66ea40f7a.tar.xz systemd-a6a4f528899b1dab47408733b4a423c66ea40f7a.zip |
networkctl: use safe_qsort in case no links are present
Unlikely to happen but still...
Diffstat (limited to '')
-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; |