aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 11:32:31 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 11:50:05 +0200
commit00eea0e61509847d52c6e7c328c526cd8ea21f5e (patch)
treeeb66a23d03d3556d1d6aed83d0bcdeb45bbaefbf /src/song.c
parentbadb827712f14a811483ed542b2c2cf09e650cce (diff)
downloadmpd-00eea0e61509847d52c6e7c328c526cd8ea21f5e.tar.gz
mpd-00eea0e61509847d52c6e7c328c526cd8ea21f5e.tar.xz
mpd-00eea0e61509847d52c6e7c328c526cd8ea21f5e.zip
song: initialize mtime in song_alloc()
Diffstat (limited to '')
-rw-r--r--src/song.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/song.c b/src/song.c
index f7eee54a2..76c25f44f 100644
--- a/src/song.c
+++ b/src/song.c
@@ -49,6 +49,7 @@ song_alloc(const char *url, struct directory *parent)
song->tag = NULL;
memcpy(song->url, url, urllen + 1);
song->parent = parent;
+ song->mtime = 0;
return song;
}