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

This commit is contained in:
Brad King 2016-11-14 10:19:12 -05:00
commit 04dce5f965
1 changed files with 1 additions and 1 deletions

View File

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