summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-10-29 09:18:44 +0000
committermbr <mbr@FreeBSD.org>2003-10-29 09:18:44 +0000
commitd440ee0ba551666f585a6a9fcaa620373bcfea68 (patch)
treebae910ad145a7205a56d7fb6e4e677bb8db1e27f
parente2738554471e8039dee411ed3376af7306301818 (diff)
downloadFreeBSD-src-d440ee0ba551666f585a6a9fcaa620373bcfea68.zip
FreeBSD-src-d440ee0ba551666f585a6a9fcaa620373bcfea68.tar.gz
Don't use NULL to compare against a character.
Obtained from: NetBSD
-rw-r--r--lib/libc/rpc/clnt_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c
index e798496..cacecaf 100644
--- a/lib/libc/rpc/clnt_simple.c
+++ b/lib/libc/rpc/clnt_simple.c
@@ -140,7 +140,7 @@ rpc_call(host, prognum, versnum, procnum, inproc, in, outproc, out, nettype)
rcp->valid = 0;
rcp->client = NULL;
}
- if ((nettype == NULL) || (nettype[0] == NULL))
+ if ((nettype == NULL) || (nettype[0] == 0))
nettype = "netpath";
if (!(rcp->valid && rcp->pid == getpid() &&
(rcp->prognum == prognum) &&
OpenPOWER on IntegriCloud