Changed to treat a zero-length filename as though it were not given.