summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 04:57:11 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 04:57:11 +0000
commitb6cb3487d6cae6d135d5e330bfe4860add84b75a (patch)
tree85567dd951cd36ba78786612a105dfd25ac87af3
parenteafa89a87343d36fcc8b9e87f64d15e3cd07c7e2 (diff)
(disk_pager_read_page):
Initialize READ to 0 to force store_read to allocate a buffer.
-rw-r--r--ext2fs/pager.c4
1 files 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 <miles@gnu.ai.mit.edu>
@@ -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)