diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c index 3faab0ba3d8e..a2e662961ada 100644 --- a/usr.bin/rpcinfo/rpcinfo.c +++ b/usr.bin/rpcinfo/rpcinfo.c @@ -846,7 +846,7 @@ failed: sprintf(p++, ","); } printf("%-10s", buf); - buf[0] = NULL; + buf[0] = '\0'; for (nl = rs->nlist; nl; nl = nl->next) { strcat(buf, nl->netid); if (nl->next)