From a966cfeb1f7a14ce709ee13905560f179c054c06 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 18 Aug 2022 17:06:26 +0200 Subject: [PATCH] playlist/cue/CueParser: fix nullptr dereference Regression from commit 21e4c25e61ce54bedde77d21e0fa9ade9115116c --- src/playlist/cue/CueParser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist/cue/CueParser.cxx b/src/playlist/cue/CueParser.cxx index 4e79027a4..26d5c4945 100644 --- a/src/playlist/cue/CueParser.cxx +++ b/src/playlist/cue/CueParser.cxx @@ -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);