================
@@ -379,12 +379,21 @@ void FileSpec::ClearDirectory() {
 // directory and path are stored in separate string values.
 size_t FileSpec::GetPath(char *path, size_t path_max_len,
                          bool denormalize) const {
-  if (!path)
----------------
da-viper wrote:

we should not return 0 if the input path is nullptr. since we can use the 
function to query the actual length to allocate.

https://github.com/llvm/llvm-project/pull/220664
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to