summaryrefslogtreecommitdiff
path: root/src/shared/dns-domain.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-26 12:43:03 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-26 19:09:11 +0100
commit735323d9d3cddcd08247e541ccfdd8285c87c701 (patch)
tree9f16f35f1c0e58545f91c7b3944817c560810d49 /src/shared/dns-domain.c
parent08f904fddc163ccf9524218cd900a89716ee4a63 (diff)
shared: fix error propagation in dns_name_compare_func()
Diffstat (limited to 'src/shared/dns-domain.c')
-rw-r--r--src/shared/dns-domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c
index f44e80c9db..159944858d 100644
--- a/src/shared/dns-domain.c
+++ b/src/shared/dns-domain.c
@@ -533,7 +533,7 @@ int dns_name_compare_func(const void *a, const void *b) {
if (k > 0)
r = k;
if (w > 0)
- r = w;
+ q = w;
la[r] = lb[q] = 0;
r = strcasecmp(la, lb);