1
0
Fork 0
forked from len0rd/rockbox

Fixed bug where exiting textviewer after using up all the bookmarks caused that file unable to be read the next time.

Change-Id: I1924fe68c8528c03c4197f74a4f014edb0ac9f2a
This commit is contained in:
Avi Eisenberg 2014-02-07 11:25:02 -05:00 • committed by Thomas Martitz
parent 457bdfb6fc
commit f723ca5805

View file

@ -159,6 +159,9 @@ void tv_create_system_bookmark(void)
bookmarks[idx].flag |= TV_BOOKMARK_SYSTEM;
else
{
/* we can't add a bookmark if there is no room left! */
if (bookmark_count == TV_MAX_BOOKMARKS)
return;
bookmarks[bookmark_count].pos = *pos;
bookmarks[bookmark_count].flag = TV_BOOKMARK_SYSTEM;
bookmark_count++;