From 3da0b74a0496aacb870650acdf09c82e920168b2 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 17 Feb 1996 21:06:50 +0000 Subject: (main): Check error return from diskfs_init_diskfs. --- ufs/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ufs') 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) -- cgit v1.2.3