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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/rpcbind/rpcb_stat.c b/usr.sbin/rpcbind/rpcb_stat.c
index 0555493..0cf219e 100644
--- a/usr.sbin/rpcbind/rpcb_stat.c
+++ b/usr.sbin/rpcbind/rpcb_stat.c
@@ -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] == NULL)) {
+ if ((uaddr == NULL) || (uaddr[0] == '\0')) {
al->failure = 1;
al->success = 0;
} else {
OpenPOWER on IntegriCloud