playlist/Registry: use initializer instead of memset()
This commit is contained in:
parent
d43ce8413a
commit
74380d2ae4
@ -165,12 +165,10 @@ playlist_list_open_uri(const char *uri, Mutex &mutex)
|
|||||||
{
|
{
|
||||||
/** this array tracks which plugins have already been tried by
|
/** this array tracks which plugins have already been tried by
|
||||||
playlist_list_open_uri_scheme() */
|
playlist_list_open_uri_scheme() */
|
||||||
bool tried[n_playlist_plugins];
|
bool tried[n_playlist_plugins]{};
|
||||||
|
|
||||||
assert(uri != nullptr);
|
assert(uri != nullptr);
|
||||||
|
|
||||||
memset(tried, false, sizeof(tried));
|
|
||||||
|
|
||||||
auto playlist = playlist_list_open_uri_scheme(uri, mutex, tried);
|
auto playlist = playlist_list_open_uri_scheme(uri, mutex, tried);
|
||||||
if (playlist == nullptr)
|
if (playlist == nullptr)
|
||||||
playlist = playlist_list_open_uri_suffix(uri, mutex,
|
playlist = playlist_list_open_uri_suffix(uri, mutex,
|
||||||
|
Loading…
Reference in New Issue
Block a user