diff options
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r-- | apps/bookmark.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index b350cccd3a..fa1bd4751d 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c | |||
@@ -401,9 +401,9 @@ bool bookmark_autoload(const char* file) | |||
401 | { | 401 | { |
402 | char* bookmark = select_bookmark(global_bookmark_file_name, true); | 402 | char* bookmark = select_bookmark(global_bookmark_file_name, true); |
403 | 403 | ||
404 | if (bookmark) | 404 | if (bookmark != NULL) |
405 | { | 405 | { |
406 | return bookmark_load(global_bookmark_file_name, true); | 406 | return play_bookmark(bookmark); |
407 | } | 407 | } |
408 | 408 | ||
409 | return false; | 409 | return false; |
@@ -452,7 +452,6 @@ static int get_bookmark_count(const char* bookmark_file_name) | |||
452 | if(file < 0) | 452 | if(file < 0) |
453 | return -1; | 453 | return -1; |
454 | 454 | ||
455 | /* Get the requested bookmark */ | ||
456 | while(read_line(file, global_read_buffer, sizeof(global_read_buffer)) > 0) | 455 | while(read_line(file, global_read_buffer, sizeof(global_read_buffer)) > 0) |
457 | { | 456 | { |
458 | read_count++; | 457 | read_count++; |