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 386688b87a
This commit is contained in:
parent
80dc7c2f74
commit
c44d1566fa
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.20.20 (not yet released)
|
ver 0.20.20 (not yet released)
|
||||||
|
* protocol
|
||||||
|
- fix "modified-since" filter regression
|
||||||
|
|
||||||
ver 0.20.19 (2018/04/26)
|
ver 0.20.19 (2018/04/26)
|
||||||
* protocol
|
* protocol
|
||||||
|
|
|
@ -67,7 +67,7 @@ SongFilter::Item::Item(unsigned _tag, const char *_value, bool _fold_case)
|
||||||
}
|
}
|
||||||
|
|
||||||
SongFilter::Item::Item(unsigned _tag, time_t _time)
|
SongFilter::Item::Item(unsigned _tag, time_t _time)
|
||||||
:tag(_tag), value(nullptr), time(_time)
|
:tag(_tag), time(_time)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue