diff options
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r-- | apps/bookmark.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index a86e2a6504..b5c0e4a148 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c | |||
@@ -501,6 +501,11 @@ static char* select_bookmark(const char* bookmark_file_name) | |||
501 | #endif | 501 | #endif |
502 | 502 | ||
503 | bookmark_count = get_bookmark_count(bookmark_file_name); | 503 | bookmark_count = get_bookmark_count(bookmark_file_name); |
504 | if (bookmark_count < 1) /* error opening file, or empty file */ | ||
505 | { | ||
506 | gui_syncsplash(HZ, str(LANG_BOOKMARK_LOAD_EMPTY)); | ||
507 | return NULL; | ||
508 | } | ||
504 | action_signalscreenchange(); | 509 | action_signalscreenchange(); |
505 | while(true) | 510 | while(true) |
506 | { | 511 | { |