summaryrefslogtreecommitdiff
path: root/src/terminal-screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-screen.c')
-rw-r--r--src/terminal-screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 6c5a4f7..3d741da 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -230,7 +230,8 @@ cwd_of_pid (int pid)
if (chdir (cwd_file) == 0)
{
working_dir = g_get_current_dir ();
- (void) chdir (cwd);
+ if (chdir (cwd) < 0)
+ g_warning ("Could not change working directory.");
}
g_free (cwd);
}