diff options
Diffstat (limited to 'src/pwd.c')
-rw-r--r-- | src/pwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,6 +66,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); @@ -77,7 +79,5 @@ main (int argc, char **argv) error (1, errno, _("cannot get current directory")); printf ("%s\n", wd); - close_stdout (); - exit (0); } |