summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:34:33 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:34:33 +0000
commit94bab411a276ca02ad0192636b48b1d85de9573b (patch)
tree58dd312d251248411105caf58294fc8a94d15109 /usr.sbin/bind/lib/dns
parentbe1f47e5ea2a0ac1fc58fdb575e2852d89844f68 (diff)
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.sbin/bind/lib/dns')
-rw-r--r--usr.sbin/bind/lib/dns/ttl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bind/lib/dns/ttl.c b/usr.sbin/bind/lib/dns/ttl.c
index 003703aad21..15178b81114 100644
--- a/usr.sbin/bind/lib/dns/ttl.c
+++ b/usr.sbin/bind/lib/dns/ttl.c
@@ -165,7 +165,7 @@ bind_ttl(isc_textregion_t *source, isc_uint32_t *ttl) {
isc_result_t result;
char *np = nbuf;
- while (*s != '\0' && isdigit((unsigned char)*s))
+ while (isdigit((unsigned char)*s))
*np++ = *s++;
*np++ = '\0';
INSIST(np - nbuf <= (int)sizeof(nbuf));