From b6cb3487d6cae6d135d5e330bfe4860add84b75a Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 20 Jun 1997 04:57:11 +0000 Subject: (disk_pager_read_page): Initialize READ to 0 to force store_read to allocate a buffer. --- ext2fs/pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext2fs/pager.c b/ext2fs/pager.c index cf09a16d..61f775c4 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -1,6 +1,6 @@ /* Pager for ext2fs - Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. Converted for ext2fs by Miles Bader @@ -395,7 +395,7 @@ static error_t disk_pager_read_page (vm_offset_t page, void **buf, int *writelock) { error_t err; - size_t length = vm_page_size, read; + size_t length = vm_page_size, read = 0; vm_size_t dev_end = store->size; if (page + vm_page_size > dev_end) -- cgit v1.2.3