From 364871328ef07f4875d911e1f73a9d84e03fd6ff Mon Sep 17 00:00:00 2001 From: Grzegorz Bernacki Date: Thu, 21 Nov 2013 09:19:14 +0000 Subject: [PATCH] Unbreak compilation with GCC. --- sys/dev/nand/nand_cdev.c | 3 ++- sys/dev/nand/nand_geom.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/nand/nand_cdev.c b/sys/dev/nand/nand_cdev.c index bcfe3ea36125..b01194601ada 100644 --- a/sys/dev/nand/nand_cdev.c +++ b/sys/dev/nand/nand_cdev.c @@ -298,7 +298,8 @@ nand_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct nand_oob_rw *oob_rw = NULL; struct nand_raw_rw *raw_rw = NULL; device_t nandbus; - size_t bufsize, len, raw_size; + size_t bufsize = 0, len = 0; + size_t raw_size; off_t off; uint8_t *buf = NULL; int ret = 0; diff --git a/sys/dev/nand/nand_geom.c b/sys/dev/nand/nand_geom.c index f17ee60959bb..8786a0a84776 100644 --- a/sys/dev/nand/nand_geom.c +++ b/sys/dev/nand/nand_geom.c @@ -197,7 +197,8 @@ nand_ioctl(struct disk *ndisk, u_long cmd, void *data, int fflag, struct nand_oob_rw *oob_rw = NULL; struct nand_raw_rw *raw_rw = NULL; device_t nandbus; - size_t bufsize, len, raw_size; + size_t bufsize = 0, len = 0; + size_t raw_size; off_t off; uint8_t *buf = NULL; int ret = 0;