summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index bd9d1c9..9c712fc 100644
--- a/super1.c
+++ b/super1.c
@@ -697,7 +697,7 @@ static int init_super1(struct supertype *st, mdu_array_info_t *info,
memset(sb, 0, 1024);
st->sb = sb;
- if (info->major_version == -1) {
+ if (info == NULL) {
/* zeroing superblock */
return 0;
}