db/simple/ExportedSong: check src.OwnsTag(), not this->OwnsTag()

this->OwnsTag() accesses fields that are not yet initialized.
This commit is contained in:
Max Kellermann
2021-07-30 13:08:34 +02:00
parent 64fa76c568
commit 5355335f19
2 changed files with 3 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ public:
moved-from instance also owned the Tag
which its LightSong::tag field refers
to */
OwnsTag() ? tag_buffer : src.tag),
src.OwnsTag() ? tag_buffer : src.tag),
tag_buffer(std::move(src.tag_buffer)) {}
ExportedSong &operator=(ExportedSong &&) = delete;