mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
sd-radv: use strv_isempty() where we can
This commit is contained in:
parent
f5a5706ace
commit
97d7974b18
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user