db/update/ExcludeList: allow comments only at start of line
This commit is contained in:
parent
d5c132fca0
commit
63406efcd8
1
NEWS
1
NEWS
|
@ -2,6 +2,7 @@ ver 0.20.21 (not yet released)
|
|||
* database
|
||||
- proxy: add "password" setting
|
||||
- proxy: support tags "ArtistSort", "AlbumArtistSort", "AlbumSort"
|
||||
- simple: allow .mpdignore comments only at start of line
|
||||
* output
|
||||
- httpd: remove broken DLNA support code
|
||||
|
||||
|
|
|
@ -38,12 +38,8 @@
|
|||
inline void
|
||||
ExcludeList::ParseLine(char *line) noexcept
|
||||
{
|
||||
char *p = strchr(line, '#');
|
||||
if (p != nullptr)
|
||||
*p = 0;
|
||||
|
||||
p = Strip(line);
|
||||
if (*p != 0)
|
||||
char *p = Strip(line);
|
||||
if (*p != 0 && *p != '#')
|
||||
patterns.emplace_front(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue