summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-17 21:06:50 +0000
committerMiles Bader <miles@gnu.org>1996-02-17 21:06:50 +0000
commit3da0b74a0496aacb870650acdf09c82e920168b2 (patch)
tree64f0696d7e9291ab7517f13d11db4648fe3e741b
parent3ec56509aa60dadd0d633454e964ba21144d9244 (diff)
(main): Check error return from diskfs_init_diskfs.
-rw-r--r--ext2fs/ext2fs.c4
-rw-r--r--ufs/main.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ext2fs/ext2fs.c b/ext2fs/ext2fs.c
index d70bd853..b0d7495e 100644
--- a/ext2fs/ext2fs.c
+++ b/ext2fs/ext2fs.c
@@ -67,7 +67,9 @@ main (int argc, char **argv)
/* Initialize the diskfs library. This must come before
any other diskfs call. */
- diskfs_init_diskfs ();
+ err = diskfs_init_diskfs ();
+ if (err)
+ error (4, err, "init");
err = diskfs_device_open ();
if (err)
diff --git a/ufs/main.c b/ufs/main.c
index b7dd13c5..ea43acce 100644
--- a/ufs/main.c
+++ b/ufs/main.c
@@ -83,7 +83,9 @@ main (int argc, char **argv)
}
/* Initialize the diskfs library. Must come before any other diskfs call. */
- diskfs_init_diskfs ();
+ err = diskfs_init_diskfs ();
+ if (err)
+ error (4, err, "init");
err = diskfs_device_open ();
if (err)