make endmntent function handle null argument
make endmntent function handle null argument

The function originates from SunOS 4.x in which the null argument
is allowed. glibc also handles this case.

chardi/musl,chardi/musl,chardi/musl