Explorar el Código

fix infinite recursion

David Rose hace 17 años
padre
commit
e1ea42c1b0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      panda/src/express/virtualFileSystem.cxx

+ 1 - 1
panda/src/express/virtualFileSystem.cxx

@@ -1012,7 +1012,7 @@ consider_match(PT(VirtualFile) &found_file, VirtualFileComposite *&composite_fil
 bool VirtualFileSystem::
 consider_mount_mf(const Filename &filename) {
   Filename dirname = filename.get_dirname();
-  if (dirname.empty()) {
+  if (dirname.empty() || dirname == filename) {
     // Reached the top directory; no .mf file references.
     return false;
   }