summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/floptool.cpp2
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;
}