Don't use NULL to compare against a character.

Obtained from:	NetBSD
This commit is contained in:
Martin Blapp 2003-10-29 09:18:44 +00:00
parent 0676a140b2
commit 2ad99b72ee

View File

@ -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) &&