]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-radv: use strv_isempty() where we can 9290/head
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Jun 2018 15:35:54 +0000 (17:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jun 2018 15:48:15 +0000 (17:48 +0200)
src/libsystemd-network/sd-radv.c

index 2386fbd6447ddb4ddf1ed8934714486ef0924393..54857dc7864016267e4c50918cc1a4b7bb7a3318 100644 (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;
         }