Loading...
--- dyld/dyld-1122.1/common/FileManager.cpp
+++ dyld/dyld-1162/common/FileManager.cpp
@@ -56,7 +56,9 @@
FileRecord FileManager::fileRecordForPath(Allocator& allocator, const char* filePath) {
- auto str = allocator.strdup(filePath);
+ const char* str = nullptr;
+ if ( filePath )
+ str = allocator.strdup(filePath);
return FileRecord(*this, UniquePtr<const char>(str));
}