summaryrefslogtreecommitdiff
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-20 12:11:44 +0200
committerMax Kellermann <max@duempel.org>2015-10-20 12:16:25 +0200
commit8211d4a1c24761c89e8bb9628147ef22c02760d8 (patch)
treeebdace77167ce4a1c738129e08eb317b70c01a87 /src/SongUpdate.cxx
parentfc2154ee9278ba7e9ccdc82a210806c1d1279150 (diff)
DetachedSong: check AllocatedPath::FromUTF8() result
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx2
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()) {