floptool: Allow creating unformatted images again

This commit is contained in:
Olivier Galibert 2022-03-23 14:25:11 +01:00
parent 01b611a51f
commit 0e7d9c43e0

View File

@ -244,7 +244,7 @@ static int flopcreate(int argc, char *argv[])
fprintf(stderr, "Error: Floppy creation format '%s' unknown\n", argv[3]);
return 1;
}
if(!create_fs->m_manager->can_format()) {
if(create_fs->m_manager && !create_fs->m_manager->can_format()) {
fprintf(stderr, "Error: Floppy creation format '%s' does not support creating new images\n", argv[3]);
return 1;
}