From: Marek Vasut Date: Sat, 24 Mar 2012 00:27:18 +0100 Subject: [U-Boot] [PATCH] cmd_nand: Fix possible uninited max_size variable Message-ID: <1332545238-877-1-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de GCC 4.7 error: cmd_nand.c: In function ?arg_off_size?: cmd_nand.c:216:5: warning: ?maxsize? may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Marek Vasut Cc: Scott Wood --- common/cmd_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 035a6f6..b015d11 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -191,7 +191,7 @@ static int arg_off_size(int argc, char *const argv[], int *idx, loff_t *off, loff_t *size) { int ret; - loff_t maxsize; + loff_t maxsize = 0; if (argc == 0) { *off = 0; -- 1.7.9.1