Skip to content

Commit 3c2887f

Browse files
joevtdingusdev
authored andcommitted
floppyimg: Add null floppy image converter check.
1 parent 8cc67b0 commit 3c2887f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devices/floppy/floppyimg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ FloppyImgConverter* open_floppy_image(std::string& img_path)
311311
fconv = new RawFloppyImg(img_path);
312312
}
313313

314-
if (fconv->calc_phys_params()) {
314+
if (fconv && fconv->calc_phys_params()) {
315315
delete fconv;
316316
return nullptr;
317317
}

0 commit comments

Comments
 (0)