From 0cfb376070a4bef7b4168a9795e025437e1be79f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 21 Oct 2012 11:25:08 -0400 Subject: fix clang warnings reported by Tuncer Ayaz R=rsc http://codereview.appspot.com/6744054 --- src/cmd/ndb/dblookup.c | 1 + src/cmd/ndb/dns.c | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cmd/ndb') diff --git a/src/cmd/ndb/dblookup.c b/src/cmd/ndb/dblookup.c index 7da4db54..ca73184a 100755 --- a/src/cmd/ndb/dblookup.c +++ b/src/cmd/ndb/dblookup.c @@ -103,6 +103,7 @@ dblookup(char *name, int class, int type, int auth, int ttl) } lock(&dblock); + rp = nil; dp = dnlookup(name, class, 1); if(opendatabase() < 0) goto out; diff --git a/src/cmd/ndb/dns.c b/src/cmd/ndb/dns.c index 5e150b1c..05a5dd45 100755 --- a/src/cmd/ndb/dns.c +++ b/src/cmd/ndb/dns.c @@ -517,10 +517,6 @@ rwalk(Job *job, Mfile *mf) if(job->request.newfid != job->request.fid){ /* clone fid */ - if(job->request.newfid<0){ - err = "clone newfid out of range"; - goto send; - } nmf = copyfid(mf, job->request.newfid); if(nmf == nil){ err = "clone bad newfid"; -- cgit v1.2.3