summaryrefslogtreecommitdiffstats
path: root/src/tools/qdir_unix.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-12 17:34:58 -0600
committerTimothy Pearson <[email protected]>2012-02-12 17:34:58 -0600
commite90b15c55dd5cfa5b40e078722c8145264ee7237 (patch)
tree1ea53f263a5d960f339e231cb338a3868768f516 /src/tools/qdir_unix.cpp
parentd51c5c4d31274906405b22762f560fc999414822 (diff)
downloadqt3-e90b15c55dd5cfa5b40e078722c8145264ee7237.tar.gz
qt3-e90b15c55dd5cfa5b40e078722c8145264ee7237.zip
Clean up a few build warnings
Diffstat (limited to 'src/tools/qdir_unix.cpp')
-rw-r--r--src/tools/qdir_unix.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/qdir_unix.cpp b/src/tools/qdir_unix.cpp
index 0b297ca..5c0c393 100644
--- a/src/tools/qdir_unix.cpp
+++ b/src/tools/qdir_unix.cpp
@@ -98,7 +98,10 @@ QString QDir::canonicalPath() const
slashify( r );
// always make sure we go back to the current dir
- ::chdir( cur );
+ if (::chdir( cur ) < 0) {
+ // Error!
+ // FIXME
+ }
}
#endif /* __GLIBC__ && !PATH_MAX */
return r;