From c44d1566fa40ebf2a1560a27aef9e4536f86b47e Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Fri, 9 Feb 2018 13:19:26 +0100
Subject: [PATCH] SongFilter: fix "modified-since" filter

Error message sent to client was "basic_string::_M_construct null not
valid" due to passing nullptr to the std::string constructor.

Regression caused by commit 386688b87ac
---
 NEWS               | 2 ++
 src/SongFilter.cxx | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index efd31e7d1..2f1bc0107 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
 ver 0.20.20 (not yet released)
+* protocol
+  - fix "modified-since" filter regression
 
 ver 0.20.19 (2018/04/26)
 * protocol
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx
index c0e0a2edd..2e0d6751a 100644
--- a/src/SongFilter.cxx
+++ b/src/SongFilter.cxx
@@ -67,7 +67,7 @@ SongFilter::Item::Item(unsigned _tag, const char *_value, bool _fold_case)
 }
 
 SongFilter::Item::Item(unsigned _tag, time_t _time)
-	:tag(_tag), value(nullptr), time(_time)
+	:tag(_tag), time(_time)
 {
 }