mirror of
https://github.com/reactos/CMake.git
synced 2025-02-04 02:47:29 +00:00
Merge topic 'cmake-server-fix-16422'
d0a707b3 server-mode: Prevent possible crash when watching directories
This commit is contained in:
commit
fcfddc67ed
@ -291,7 +291,7 @@ void on_directory_change(uv_fs_event_t* handle, const char* filename,
|
||||
{
|
||||
const cmIBaseWatcher* const watcher =
|
||||
static_cast<const cmIBaseWatcher*>(handle->data);
|
||||
const std::string pathSegment(filename);
|
||||
const std::string pathSegment(filename ? filename : "");
|
||||
watcher->Trigger(pathSegment, events, status);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user