diff options
-rw-r--r-- | apps/playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 77e0ee4370..70637b39a2 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -555,6 +555,12 @@ static ssize_t format_track_path(char *dest, char *src, int buf_length, | |||
555 | const char *dir, size_t dlen) | 555 | const char *dir, size_t dlen) |
556 | { | 556 | { |
557 | /* Look for the end of the string (includes NULL) */ | 557 | /* Look for the end of the string (includes NULL) */ |
558 | |||
559 | if (!src || !dest || !dir) | ||
560 | { | ||
561 | DEBUGF("%s() bad pointer", __func__); | ||
562 | return -2; /* bad pointers */ | ||
563 | } | ||
558 | size_t len = strcspn(src, "\r\n");; | 564 | size_t len = strcspn(src, "\r\n");; |
559 | /* Now work back killing white space */ | 565 | /* Now work back killing white space */ |
560 | while (len > 0) | 566 | while (len > 0) |