summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2021-07-21 19:27:29 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2021-07-21 19:27:29 +1000
commit645aef00d7b133dc65a3c5aa54563a0590bcb1ad (patch)
tree2b558b93d1b3e41355bf06ffdbd67feb36c920ac /src/lib/formats
parentb284f3e655ef69454eeb2b9be308cfa4e294014b (diff)
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).
Diffstat (limited to 'src/lib/formats')
-rw-r--r--src/lib/formats/cassimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/cassimg.cpp b/src/lib/formats/cassimg.cpp
index 527bfc884fb..cf5812c67c1 100644
--- a/src/lib/formats/cassimg.cpp
+++ b/src/lib/formats/cassimg.cpp
@@ -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);
}