Don't use NULL to compare against a char.
Obtained from: NetBSD
This commit is contained in:
parent
74d1b84a4d
commit
2e45c15964
@ -206,7 +206,7 @@ getnettype(nettype)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if ((nettype == NULL) || (nettype[0] == NULL)) {
|
if ((nettype == NULL) || (nettype[0] == 0)) {
|
||||||
return (_RPC_NETPATH); /* Default */
|
return (_RPC_NETPATH); /* Default */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ __rpc_getconfip(nettype)
|
|||||||
else {
|
else {
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
if ((netid == NULL) || (netid[0] == NULL)) {
|
if ((netid == NULL) || (netid[0] == 0)) {
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
dummy = getnetconfigent(netid);
|
dummy = getnetconfigent(netid);
|
||||||
|
Loading…
Reference in New Issue
Block a user