summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-08-28 14:07:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-08-28 14:08:11 (GMT)
commit1d6535c88169d74a82d67124002d2959356dce91 (patch)
tree6e54e4be2cb994a3f1456623275a8d0e5f401d01 /Source/cmFindProgramCommand.cxx
parent7630fc9d2b9ad790e38ef21a9df405395d685551 (diff)
parent58da4aa47df7d12c54c2d3f26722eca5dd8ee10f (diff)
downloadCMake-1d6535c88169d74a82d67124002d2959356dce91.zip
CMake-1d6535c88169d74a82d67124002d2959356dce91.tar.gz
CMake-1d6535c88169d74a82d67124002d2959356dce91.tar.bz2
Merge topic 'nullptr-comp'
58da4aa47d Source: Avoid comparing pointers to nullptr Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !9778
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index 8a2a69e..dd22b41 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -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];