diff options
author | Jim Meyering <jim@meyering.net> | 1998-06-30 02:27:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-06-30 02:27:51 +0000 |
commit | 3fa1d4bb24d06dc358501b63ee4ca49fd34b2647 (patch) | |
tree | e058a5536b42cbf68ce24b19a2ff9b2bd1b9fe3f /src | |
parent | 1c84606b568fb042441dda54f8d5bd286139e693 (diff) | |
download | coreutils-3fa1d4bb24d06dc358501b63ee4ca49fd34b2647.tar.xz |
(main): Move the test of the result of the read_filesystem_list call
up out of if-block -- code in the else-block depends on it too.
Diffstat (limited to 'src')
-rw-r--r-- | src/df.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -704,13 +704,14 @@ main (int argc, char **argv) || print_type), show_all_fs); + if (mount_list == NULL) + error (1, errno, _("cannot read table of mounted filesystems")); + if (require_sync) sync (); if (optind == argc) { - if (mount_list == NULL) - error (1, errno, _("cannot read table of mounted filesystems")); print_header (); show_all_entries (); } |