playlist/cue/CueParser: fix nullptr dereference

Regression from commit 21e4c25e61
This commit is contained in:
Max Kellermann 2022-08-18 17:06:26 +02:00
parent 6c0546d829
commit a966cfeb1f

View File

@ -48,7 +48,7 @@ cue_next_quoted(std::string_view &src) noexcept
auto end = src.find('"');
if (end == src.npos)
/* syntax error - ignore it silently */
return std::exchange(src, nullptr);
return std::exchange(src, {});
auto value = src.substr(0, end);
src = src.substr(end + 1);