[Lldb-commits] [lldb] [lldb][SBAPI] Return the correct value for lldb::SBFileSpec (PR #220664)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 3 11:59:33 PDT 2026


================
@@ -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


More information about the lldb-commits mailing list