From 8211d4a1c24761c89e8bb9628147ef22c02760d8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Oct 2015 12:11:44 +0200 Subject: DetachedSong: check AllocatedPath::FromUTF8() result --- src/SongUpdate.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/SongUpdate.cxx') diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index c2d1f5fed..cf90fb9a2 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -179,6 +179,8 @@ DetachedSong::Update() if (IsAbsoluteFile()) { const AllocatedPath path_fs = AllocatedPath::FromUTF8(GetRealURI()); + if (path_fs.IsNull()) + return false; return LoadFile(path_fs); } else if (IsRemote()) { -- cgit v1.2.3