summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-29 18:53:30 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-29 19:56:49 +0200
commit003a54afeba00597fd2f50e38ccd35c7cd5e4e39 (patch)
tree53e0b9b839dbf4de9daa9dd354d423aa01b81052 /playlist.c
parent335bec105eea648030f55282479fe509cc1bfa9d (diff)
lastfm plugin uri-encoding, batch-sending and other improvements
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index cd0f9d70..14be6429 100644
--- a/playlist.c
+++ b/playlist.c
@@ -562,7 +562,9 @@ pl_item_copy (playItem_t *out, playItem_t *it) {
playItem_t *
pl_item_alloc (void) {
- return malloc (sizeof (playItem_t));
+ playItem_t *it = malloc (sizeof (playItem_t));
+ memset (it, 0, sizeof (playItem_t));
+ return it;
}
void