db/update/Archive: fix inverted nullptr check

Regression by commit bbdf2dcf1e
This commit is contained in:
Max Kellermann 2019-05-22 10:18:18 +02:00
parent bbdf2dcf1e
commit 6ee7d88af0

View File

@ -83,7 +83,7 @@ UpdateWalk::UpdateArchiveTree(ArchiveFile &archive, Directory &directory,
Song *song = LockFindSong(directory, name);
if (song == nullptr) {
auto new_song = Song::LoadFromArchive(archive, name, directory);
if (!new_song) {
if (new_song) {
{
const ScopeDatabaseLock protect;
directory.AddSong(std::move(new_song));