db/upnp: use DatabaseStats::Clear()
This commit is contained in:
parent
7df8e1eab2
commit
de64b35359
@ -772,10 +772,7 @@ UpnpDatabase::GetStats(const DatabaseSelection &,
|
|||||||
{
|
{
|
||||||
/* Note: this gets called before the daemonizing so we can't
|
/* Note: this gets called before the daemonizing so we can't
|
||||||
reallyopen this would be a problem if we had real stats */
|
reallyopen this would be a problem if we had real stats */
|
||||||
stats.song_count = 0;
|
stats.Clear();
|
||||||
stats.total_duration = 0;
|
|
||||||
stats.artist_count = 0;
|
|
||||||
stats.album_count = 0;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user