diff options
author | Pablo Barciela <[email protected]> | 2017-12-28 01:48:44 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-12-29 19:40:57 +0100 |
commit | e370b85599468cc3fd632f5a01adc3a162d54d5a (patch) | |
tree | def2e7ec1cb6368e6b1318571a3af25d4d02aee8 /src/terminal-screen.c | |
parent | 294ce367b2d376bb4b53017136c82af94a15026e (diff) | |
download | mate-terminal-e370b85599468cc3fd632f5a01adc3a162d54d5a.tar.bz2 mate-terminal-e370b85599468cc3fd632f5a01adc3a162d54d5a.tar.xz |
Fix build warnings: ignoring return value of ‘chdir’,
declared with attribute warn_unused_result
Diffstat (limited to 'src/terminal-screen.c')
-rw-r--r-- | src/terminal-screen.c | 3 |
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); } |