diff options
author | 2022-03-23 14:25:11 +0100 | |
---|---|---|
committer | 2022-03-23 14:25:11 +0100 | |
commit | 0e7d9c43e001c844a105fae740d370c10afc18dc (patch) | |
tree | 724b6f12a0d9108fdbed27583f9d3cbe36ba7adf /src/tools/floptool.cpp | |
parent | 01b611a51ffd4f7422e84ee764d1c05581cd41e1 (diff) |
floptool: Allow creating unformatted images again
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r-- | src/tools/floptool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp index 18effd94526..1e7efc05ba5 100644 --- a/src/tools/floptool.cpp +++ b/src/tools/floptool.cpp @@ -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; } |