mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix to the previous commit: Pointers were not always correctly erased.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7932 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
735f453730
commit
bae4fed19d
1 changed files with 3 additions and 0 deletions
|
@ -2060,6 +2060,9 @@ int playlist_add(const char *filename)
|
|||
}
|
||||
|
||||
playlist->indices[playlist->amount] = playlist->buffer_end_pos;
|
||||
#ifdef HAVE_DIRCACHE
|
||||
playlist->filenames[playlist->amount] = NULL;
|
||||
#endif
|
||||
playlist->amount++;
|
||||
|
||||
strcpy(&playlist->buffer[playlist->buffer_end_pos], filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue