summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-29 15:52:45 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-29 15:56:59 (GMT)
commit71ded12a756e78bdfe07f54dd84dbfebc7556f09 (patch)
treef0861e7890fe6562294645abfcfce61f76131c35 /Source/cmListFileCache.cxx
parenta8c8842101b45370183eba6294b0178bc2abe55b (diff)
downloadCMake-71ded12a756e78bdfe07f54dd84dbfebc7556f09.zip
CMake-71ded12a756e78bdfe07f54dd84dbfebc7556f09.tar.gz
CMake-71ded12a756e78bdfe07f54dd84dbfebc7556f09.tar.bz2
cmGeneratedFileStream: Do not remove empty path
If `Close()` is called when a file was never opened, we have no temporary file path. Do not try to remove it. Some implementations of `unlink()` crash on an empty path (though the documented behavior is to fail with `ENOENT`). Fixes: #23414
Diffstat (limited to 'Source/cmListFileCache.cxx')
0 files changed, 0 insertions, 0 deletions