1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

dns-domain: simplify code a bit

This commit is contained in:
Yu Watanabe 2022-06-10 09:49:07 +09:00
parent 8d896617b4
commit 47484dd955

View File

@ -450,12 +450,8 @@ int dns_name_concat(const char *a, const char *b, DNSLabelFlags flags, char **_r
return r;
}
if (!first)
n++;
else
first = false;
n += r;
n += r + !first;
first = false;
}
finish: