summaryrefslogtreecommitdiff
path: root/src/command/FileCommands.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/FileCommands.cxx')
-rw-r--r--src/command/FileCommands.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx
index 1a2b3b8c4..e6ff5672d 100644
--- a/src/command/FileCommands.cxx
+++ b/src/command/FileCommands.cxx
@@ -267,6 +267,9 @@ try {
AtScopeExit(db, song) { db->ReturnSong(song); };
+ if (song->real_uri == nullptr)
+ return directory_uri;
+
const char *real_uri = song->real_uri;
/* this is a simplification which is just enough for CUE