1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-01-27 09:24:54 +00:00

Fix: calculation of coverimage #72

This commit is contained in:
jcorporation 2018-11-05 20:20:18 +00:00
parent 179668e868
commit 568ad1e382

View File

@ -1495,7 +1495,8 @@ int replacechar(char *str, char orig, char rep) {
}
int mympd_get_cover(const char *uri, char *cover, int cover_len) {
char *path = strdup(uri);
char *orgpath = strdup(uri);
char *path = orgpath;
int len;
if (!config.coverimage) {
@ -1528,7 +1529,7 @@ int mympd_get_cover(const char *uri, char *cover, int cover_len) {
} else
len = snprintf(cover, cover_len, "/assets/coverimage-notavailable.png");
}
free(path);
free(orgpath);
return len;
}