Use an optional string instead of a manually allocated char pointer. Optional is used because sometimes `nullptr` was returned. It's still inconsistent though, because often "" or ".." was returned instead.
Use an optional string instead of a manually allocated char pointer. Optional is used because sometimes `nullptr` was returned. It's still inconsistent though, because often "" or ".." was returned instead.