summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index f8b99c0e..0b9839da 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1593,6 +1593,10 @@ pl_format_item_queue (playItem_t *it, char *s, int size) {
s += len;
size -= len;
}
+ else {
+ *s = 0;
+ return 0;
+ }
return initsize-size;
}