1
0
Эх сурвалжийг харах

Merge topic 'cmFileMonitor-skip-empty-names'

7bad99b0 cmake-server: Do not try watching subdirectories with empty names
Brad King 8 жил өмнө
parent
commit
c9a0b14153

+ 3 - 0
Source/cmFileMonitor.cxx

@@ -334,6 +334,9 @@ void cmFileMonitor::MonitorPaths(const std::vector<std::string>& paths,
           rootSegment)); // Can not be both filename and root part of the path!
 
       const std::string& currentSegment = pathSegments[i];
+      if (currentSegment.empty()) {
+        continue;
+      }
 
       cmIBaseWatcher* nextWatcher = currentWatcher->Find(currentSegment);
       if (!nextWatcher) {