diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-01-05 16:18:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-05 21:44:26 +0100 |
commit | 218db3d9ef7af3021304322e6903835afd10580d (patch) | |
tree | 7bf9c9f50baca6bbed57cacae86b0d9533416508 /src/shared/dns-domain.c | |
parent | ef503f1cec53f654780591adee6e3e223b575f56 (diff) | |
download | systemd-218db3d9ef7af3021304322e6903835afd10580d.tar.gz |
dns-domain: dns_name_is_empty() is redundant
dns_name_is_empty() was added later, but does the same thing as the more
accurately called dns_name_is_root(), hence drop the former.
Diffstat (limited to 'src/shared/dns-domain.c')
-rw-r--r-- | src/shared/dns-domain.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c index d209e17f95..620b156563 100644 --- a/src/shared/dns-domain.c +++ b/src/shared/dns-domain.c @@ -832,7 +832,6 @@ int dns_name_address(const char *p, int *ret_family, union in_addr_union *ret_ad } bool dns_name_is_root(const char *name) { - assert(name); /* There are exactly two ways to encode the root domain name: |