summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 23:05:10 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 23:05:58 +0200
commit6796073e330f49923c5134652ee085e29fc88002 (patch)
tree74846808a3d75996ef72fa305a54c62de6f2c5f0 /src/resolve
parent1d1423257aa7d486e1affc7495fce83438226245 (diff)
tree-wide: make use of the fact that strv_free() returns NULL
Another Coccinelle patch.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-link.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index 47f461a37d..b9fd8e3dbc 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -238,8 +238,7 @@ static int link_update_domains(Link *l) {
if (!l->unicast_scope)
return 0;
- strv_free(l->unicast_scope->domains);
- l->unicast_scope->domains = NULL;
+ l->unicast_scope->domains = strv_free(l->unicast_scope->domains);
r = sd_network_link_get_domains(l->ifindex,
&l->unicast_scope->domains);