db/update/Archive: fix inverted nullptr check
Regression by commit bbdf2dcf1e
This commit is contained in:
parent
bbdf2dcf1e
commit
6ee7d88af0
@ -83,7 +83,7 @@ UpdateWalk::UpdateArchiveTree(ArchiveFile &archive, Directory &directory,
|
|||||||
Song *song = LockFindSong(directory, name);
|
Song *song = LockFindSong(directory, name);
|
||||||
if (song == nullptr) {
|
if (song == nullptr) {
|
||||||
auto new_song = Song::LoadFromArchive(archive, name, directory);
|
auto new_song = Song::LoadFromArchive(archive, name, directory);
|
||||||
if (!new_song) {
|
if (new_song) {
|
||||||
{
|
{
|
||||||
const ScopeDatabaseLock protect;
|
const ScopeDatabaseLock protect;
|
||||||
directory.AddSong(std::move(new_song));
|
directory.AddSong(std::move(new_song));
|
||||||
|
Loading…
Reference in New Issue
Block a user