From cf13cf3a706dba93b39b3fdc1176b91c569575d1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 27 Apr 2006 17:21:33 +0000 Subject: I still don't know whether this is the correct fix for WindowsFilesystemNode, but at least with it, one definite and serious bug in the code (using an uninitialised variable) has been fixed, the end result hardly will be worse svn-id: r22192 --- backends/fs/windows/windows-fs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'backends/fs/windows') diff --git a/backends/fs/windows/windows-fs.cpp b/backends/fs/windows/windows-fs.cpp index 06dbb57c05..837fed1e72 100644 --- a/backends/fs/windows/windows-fs.cpp +++ b/backends/fs/windows/windows-fs.cpp @@ -158,6 +158,10 @@ WindowsFilesystemNode::WindowsFilesystemNode(const String &p) { _isValid = true; _isDirectory = ((fileAttribs & FILE_ATTRIBUTE_DIRECTORY) != 0); } + // FIXME: Is the following correct? Should we maybe check for path being + // empty and set it to true in this case? + // In any case, not setting _isPseudoRoot at all certainly is a bug. + _isPseudoRoot = false; } FSList WindowsFilesystemNode::listDir(ListMode mode) const { -- cgit v1.2.3