avoid bad memory access if mountpoint_len equal to 0