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