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:32:31 +0200
commit09aadffe9bc14b42fb36342f1b133b8e15745b5c (patch)
treeda85aeb6f24c788a31a9b4614d3169de5d712518 /src/song.c
parente47bdfe8e6f7da67c9714db7e650fa6a925f7847 (diff)
downloadmpd-09aadffe9bc14b42fb36342f1b133b8e15745b5c.tar.gz
mpd-09aadffe9bc14b42fb36342f1b133b8e15745b5c.tar.xz
mpd-09aadffe9bc14b42fb36342f1b133b8e15745b5c.zip
song: initialize mtime in song_alloc()
Diffstat (limited to 'src/song.c')
-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;
}