cassimg: don't construct string from nullptr (#8265).

Note that std::string() was tried but somehow caused another bug (tape preset as play was instead stopped).
This commit is contained in:
Robbbert 2021-07-21 19:27:29 +10:00
parent b284f3e655
commit 645aef00d7

View File

@ -221,7 +221,7 @@ cassette_image::error cassette_image::open(void *file, const io_procs *procs,
const Format *format, int flags, ptr &outcassette)
{
const Format *const formats[2] = { format, nullptr };
return open_choices(file, procs, nullptr, formats, flags, outcassette);
return open_choices(file, procs, {}, formats, flags, outcassette);
}