diff options
Diffstat (limited to 'src/paths.cc')
-rw-r--r-- | src/paths.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/paths.cc b/src/paths.cc index 8c5bd20a..9d0abda0 100644 --- a/src/paths.cc +++ b/src/paths.cc @@ -32,10 +32,15 @@ void Paths::init(void) { char *path; struct stat st; + int rc = 0; dFree(oldWorkingDir); oldWorkingDir = dGetcwd(); - chdir("/tmp"); + rc = chdir("/tmp"); + if (rc == -1) { + MSG("paths: error changing directory to /tmp: %s\n", + dStrerror(errno)); + } path = dStrconcat(dGethomedir(), "/.dillo", NULL); if (stat(path, &st) == -1) { |