summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-28 01:48:44 +0100
committerraveit65 <[email protected]>2017-12-29 19:40:57 +0100
commite370b85599468cc3fd632f5a01adc3a162d54d5a (patch)
treedef2e7ec1cb6368e6b1318571a3af25d4d02aee8 /src/terminal.c
parent294ce367b2d376bb4b53017136c82af94a15026e (diff)
downloadmate-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.c')
-rw-r--r--src/terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 81aab2d..401af42 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -563,7 +563,8 @@ main (int argc, char **argv)
*/
home_dir = g_get_home_dir ();
if (home_dir == NULL || chdir (home_dir) < 0)
- (void) chdir ("/");
+ if (chdir ("/") < 0)
+ g_warning ("Could not change working directory.");
options = terminal_options_parse (working_directory,
NULL,