summaryrefslogtreecommitdiff
path: root/isofs/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'isofs/main.c')
-rw-r--r--isofs/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isofs/main.c b/isofs/main.c
index beca281d..37f8a007 100644
--- a/isofs/main.c
+++ b/isofs/main.c
@@ -101,6 +101,8 @@ read_sblock ()
error (1, 0, "Could not find valid superblock");
sblock = malloc (sizeof (struct sblock));
+ if (!sblock)
+ error (1, errno, "Could not allocate memory for superblock");
bcopy (sb, sblock, sizeof (struct sblock));
diskfs_end_catch_exception ();