db/upnp: use DatabaseStats::Clear()

This commit is contained in:
Max Kellermann 2014-08-29 23:24:49 +02:00
parent 7df8e1eab2
commit de64b35359

View File

@ -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;
} }