From e90b15c55dd5cfa5b40e078722c8145264ee7237 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 12 Feb 2012 17:34:58 -0600 Subject: Clean up a few build warnings --- src/tools/qdir_unix.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tools/qdir_unix.cpp') 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; -- cgit v1.2.3