src/album.c in mockspotify-0.1.6 vs src/album.c in mockspotify-0.1.7
- old
+ new
@@ -11,10 +11,10 @@
sp_album *a = ALLOC(sp_album);
strcpy(a->name, name);
a->artist = artist;
a->year = year;
- memcpy(a->cover, cover, 20);
+ if (cover) memcpy(a->cover, cover, 20);
a->type = type;
a->loaded = loaded;
a->available = available;
return a;
}