summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-03-03 15:07:02 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-02 20:11:41 -0400
commit68a9c7c4f0c06fb413a3830212f5e06d8dd5089c (patch)
treedab0646288ec364c58a37661c0dda6326349c3d9 /src/libsystemd
parent6307c39b94344b901c1d6e0df7ee58644a8809bf (diff)
nss-myhostname: trivial style fixes
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-netlink/local-addresses.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd/sd-netlink/local-addresses.c b/src/libsystemd/sd-netlink/local-addresses.c
index 6abd8fd0cc..ed9ee041ab 100644
--- a/src/libsystemd/sd-netlink/local-addresses.c
+++ b/src/libsystemd/sd-netlink/local-addresses.c
@@ -155,8 +155,7 @@ int local_addresses(sd_netlink *context, int ifindex, int af, struct local_addre
n_list++;
};
- if (n_list > 0)
- qsort(list, n_list, sizeof(struct local_address), address_compare);
+ qsort_safe(list, n_list, sizeof(struct local_address), address_compare);
*ret = list;
list = NULL;