diff options
author | mbr <mbr@FreeBSD.org> | 2003-10-29 09:18:44 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-10-29 09:18:44 +0000 |
commit | d440ee0ba551666f585a6a9fcaa620373bcfea68 (patch) | |
tree | bae910ad145a7205a56d7fb6e4e677bb8db1e27f /lib/libc/rpc/clnt_simple.c | |
parent | e2738554471e8039dee411ed3376af7306301818 (diff) | |
download | FreeBSD-src-d440ee0ba551666f585a6a9fcaa620373bcfea68.zip FreeBSD-src-d440ee0ba551666f585a6a9fcaa620373bcfea68.tar.gz |
Don't use NULL to compare against a character.
Obtained from: NetBSD
Diffstat (limited to 'lib/libc/rpc/clnt_simple.c')
-rw-r--r-- | lib/libc/rpc/clnt_simple.c | 2 |
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) && |