diff options
author | Max Kellermann <max@duempel.org> | 2015-10-20 12:11:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-20 12:16:25 +0200 |
commit | 8211d4a1c24761c89e8bb9628147ef22c02760d8 (patch) | |
tree | ebdace77167ce4a1c738129e08eb317b70c01a87 /src | |
parent | fc2154ee9278ba7e9ccdc82a210806c1d1279150 (diff) | |
download | mpd-8211d4a1c24761c89e8bb9628147ef22c02760d8.tar.gz mpd-8211d4a1c24761c89e8bb9628147ef22c02760d8.tar.xz mpd-8211d4a1c24761c89e8bb9628147ef22c02760d8.zip |
DetachedSong: check AllocatedPath::FromUTF8() result
Diffstat (limited to 'src')
-rw-r--r-- | src/SongUpdate.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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()) { |