summaryrefslogtreecommitdiff
path: root/plugins/artwork/lastfm.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/artwork/lastfm.c')
-rw-r--r--plugins/artwork/lastfm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/artwork/lastfm.c b/plugins/artwork/lastfm.c
index df08c2b9..6f429bf7 100644
--- a/plugins/artwork/lastfm.c
+++ b/plugins/artwork/lastfm.c
@@ -32,6 +32,7 @@ fetch_from_lastfm (const char *artist, const char *album, const char *dest)
const char searchstr[] = "<image size=\"extralarge\">";
char buffer[1000];
+ memset (buffer, 0, sizeof (buffer));
char *img = NULL;
int size = deadbeef->fread (buffer, 1, sizeof (buffer), fp);
if (size > 0) {