The bin/hostname test triggers this crash for me in a riscv VM running
CheriBSD. I'm not sure why it happens there and not elsewhere.
Pass an empty string rather than a NULL pointer, since we otherwise end
up calling bcopy(NULL, buf, 0), which I believe is undefined behaviour.
Sponsored by: Innovate UK
Fixes: eb8dcdeac22d ("jail: network epoch protection for IP address lists")