sd-radv: use strv_isempty() where we can

This commit is contained in:
Lennart Poettering 2018-06-13 17:35:54 +02:00
parent f5a5706ace
commit 97d7974b18
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}