Explorar o código

Merge branch 'cmake-server-fix-16422' into release

Brad King %!s(int64=9) %!d(string=hai) anos
pai
achega
04dce5f965
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmFileMonitor.cxx

+ 1 - 1
Source/cmFileMonitor.cxx

@@ -288,7 +288,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);
 }