From f0e65cb9d1817b0fe94805025ebdbdd8091b04b3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 25 Jan 2013 00:28:50 +0000 Subject: [PATCH] Eliminate another compiler warning in some build modes git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4746 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 0ef0f1d1a..3e301810f 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1572,7 +1572,7 @@ readpage: static int prepare_read(struct file *filp, struct scatterlist *sg, int sg_cnt, pgoff_t offset) { - struct page *page; + struct page *page = NULL; int i, res; loff_t off, last = ((offset + sg_cnt - 1) << PAGE_SHIFT) + sg[sg_cnt - 1].offset + sg[sg_cnt - 1].length;