summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpcbind/rpcb_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpcbind/rpcb_stat.c')
-rw-r--r--usr.sbin/rpcbind/rpcb_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpcbind/rpcb_stat.c b/usr.sbin/rpcbind/rpcb_stat.c
index e2cf89e..b10ed50 100644
--- a/usr.sbin/rpcbind/rpcb_stat.c
+++ b/usr.sbin/rpcbind/rpcb_stat.c
@@ -116,7 +116,7 @@ rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, char *netid,
return;
if ((al->prog == prog) && (al->vers == vers) &&
(strcmp(al->netid, netid) == 0)) {
- if ((uaddr == NULL) || (uaddr[0] == NULL))
+ if ((uaddr == NULL) || (uaddr[0] == 0))
al->failure++;
else
al->success++;
@@ -134,7 +134,7 @@ rpcbs_getaddr(rpcvers_t rtype, rpcprog_t prog, rpcvers_t vers, char *netid,
al->prog = prog;
al->vers = vers;
al->netid = nconf->nc_netid;
- if ((uaddr == NULL) || (uaddr[0] == '\0')) {
+ if ((uaddr == NULL) || (uaddr[0] == 0)) {
al->failure = 1;
al->success = 0;
} else {
OpenPOWER on IntegriCloud