From e946c9e906653544626421bb568ceae025908803 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 18 Sep 2006 15:46:06 +0000 Subject: woops, fix the errors/warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10993 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/viewer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/viewer.c') diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 01293030a4..9024825104 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -1034,7 +1034,6 @@ static void viewer_load_settings(void) /* same name as global, but not the same if (settings_fd >= 0) { struct bookmark_file_data *data = (struct bookmark_file_data*)buffer; /* grab the text buffer */ - struct bookmark_file_data dummy; int i; data->bookmarked_files_count = 0; rb->read(settings_fd, &data->bookmarked_files_count, sizeof(signed int)); /* figure out how many items to read */ @@ -1105,9 +1104,10 @@ static void viewer_save_settings(void)/* same name as global, but not the same f settings_fd = rb->open(BOOKMARKS_FILE, O_WRONLY|O_CREAT); if (settings_fd >= 0 ) { - struct bookmarked_file_info b = {0,0,""}; + struct bookmarked_file_info b; b.file_position = file_pos; b.top_ptr_pos = screen_top_ptr - buffer; + rb->memset(&b.filename[0],0,MAX_PATH); rb->strcpy(b.filename,file_name); rb->PREFIX(lseek)(settings_fd,sizeof(signed int),SEEK_SET); rb->write (settings_fd, &b, sizeof(struct bookmarked_file_info)); -- cgit v1.2.3