Source: Avoid comparing pointers to nullptr

This commit is contained in:
Vitaly Stakhovsky
2024-08-27 09:30:00 -04:00
parent 72607d3402
commit 58da4aa47d
75 changed files with 235 additions and 249 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ std::string cmFindProgramCommand::GetBundleExecutable(
// returned executableURL is relative to <appbundle>/Contents/MacOS/
CFURLRef executableURL = CFBundleCopyExecutableURL(appBundle);
if (executableURL != nullptr) {
if (executableURL) {
const int MAX_OSX_PATH_SIZE = 1024;
UInt8 buffer[MAX_OSX_PATH_SIZE];