summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-10-29 09:20:33 +0000
committermbr <mbr@FreeBSD.org>2003-10-29 09:20:33 +0000
commit60f777a4673d200aa5f9efac29288e8d8b1c6b4f (patch)
tree311a74cd6fbc1f17b2ef4133256f01a23dfa0e82
parentd440ee0ba551666f585a6a9fcaa620373bcfea68 (diff)
downloadFreeBSD-src-60f777a4673d200aa5f9efac29288e8d8b1c6b4f.zip
FreeBSD-src-60f777a4673d200aa5f9efac29288e8d8b1c6b4f.tar.gz
Don't use NULL to compare against a char.
Obtained from: NetBSD
-rw-r--r--lib/libc/rpc/rpc_generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/rpc_generic.c b/lib/libc/rpc/rpc_generic.c
index 3e33e6d..4baa633 100644
--- a/lib/libc/rpc/rpc_generic.c
+++ b/lib/libc/rpc/rpc_generic.c
@@ -206,7 +206,7 @@ getnettype(nettype)
{
int i;
- if ((nettype == NULL) || (nettype[0] == NULL)) {
+ if ((nettype == NULL) || (nettype[0] == 0)) {
return (_RPC_NETPATH); /* Default */
}
@@ -294,7 +294,7 @@ __rpc_getconfip(nettype)
else {
return (NULL);
}
- if ((netid == NULL) || (netid[0] == NULL)) {
+ if ((netid == NULL) || (netid[0] == 0)) {
return (NULL);
}
dummy = getnetconfigent(netid);
OpenPOWER on IntegriCloud