summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-05-11 11:32:46 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-05-11 13:44:06 (GMT)
commitfecfc325bbd4decc0d61e10dc6536575c305f812 (patch)
tree74f042484c9cd1a376e03bbd9d5de193567e8614 /src
parent0ce24108aa20a38e53a7f307231a6752f89ef65a (diff)
downloadQt-fecfc325bbd4decc0d61e10dc6536575c305f812.zip
Qt-fecfc325bbd4decc0d61e10dc6536575c305f812.tar.gz
Qt-fecfc325bbd4decc0d61e10dc6536575c305f812.tar.bz2
QFSFileEngine: Fix access to uninitialized memory
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfsfileengine_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_unix.cpp b/src/corelib/io/qfsfileengine_unix.cpp
index 0d88b06..18b92e2 100644
--- a/src/corelib/io/qfsfileengine_unix.cpp
+++ b/src/corelib/io/qfsfileengine_unix.cpp
@@ -780,7 +780,7 @@ QString QFSFileEngine::fileName(FileName file) const
#endif
if (len > 0) {
QString ret;
- if (S_ISDIR(d->st.st_mode) && s[0] != '/') {
+ if (d->doStat() && S_ISDIR(d->st.st_mode) && s[0] != '/') {
QDir parent(d->filePath);
parent.cdUp();
ret = parent.path();