summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/res_comp.c')
-rw-r--r--lib/libc/net/res_comp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/res_comp.c b/lib/libc/net/res_comp.c
index ef99c22..2e22483 100644
--- a/lib/libc/net/res_comp.c
+++ b/lib/libc/net/res_comp.c
@@ -158,7 +158,7 @@ int
res_hnok(dn)
const char *dn;
{
- int ppch = '\0', pch = PERIOD, ch = *dn++;
+ int pch = PERIOD, ch = *dn++;
while (ch != '\0') {
int nch = *dn++;
@@ -175,7 +175,7 @@ res_hnok(dn)
if (!middlechar(ch))
return (0);
}
- ppch = pch, pch = ch, ch = nch;
+ pch = ch, ch = nch;
}
return (1);
}
OpenPOWER on IntegriCloud