diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-13 17:35:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-13 17:48:15 +0200 |
commit | 97d7974b18f3d4b455e1608193e7a27e0c2ae163 (patch) | |
tree | 64efa204159b1610c98980483ed95d601255dfa2 /src/libsystemd-network/sd-radv.c | |
parent | f5a5706ace2d7011538949e4e2ea63682a6fbc04 (diff) | |
download | systemd-97d7974b18f3d4b455e1608193e7a27e0c2ae163.tar.gz systemd-97d7974b18f3d4b455e1608193e7a27e0c2ae163.tar.bz2 systemd-97d7974b18f3d4b455e1608193e7a27e0c2ae163.zip |
sd-radv: use strv_isempty() where we can
Diffstat (limited to 'src/libsystemd-network/sd-radv.c')
-rw-r--r-- | src/libsystemd-network/sd-radv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-radv.c b/src/libsystemd-network/sd-radv.c index 2386fbd644..54857dc786 100644 --- a/src/libsystemd-network/sd-radv.c +++ b/src/libsystemd-network/sd-radv.c @@ -679,9 +679,8 @@ _public_ int sd_radv_set_dnssl(sd_radv *ra, uint32_t lifetime, assert_return(ra, -EINVAL); - if (!search_list || *search_list == NULL) { + if (strv_isempty(search_list)) { ra->dnssl = mfree(ra->dnssl); - return 0; } |