Message ID | 1317682569-4896-2-git-send-email-marek.vasut@gmail.com |
---|---|
State | Superseded |
Headers | show |
yeah, Kumar posted a (more complete) fix already -mike
On Tuesday, October 04, 2011 12:58:03 AM Mike Frysinger wrote: > yeah, Kumar posted a (more complete) fix already > -mike Thanks! Cheers
diff --git a/common/cmd_sf.c b/common/cmd_sf.c index c8c547a..73006c5 100644 --- a/common/cmd_sf.c +++ b/common/cmd_sf.c @@ -161,7 +161,7 @@ static int spi_flash_update(struct spi_flash *flash, u32 offset, char *cmp_buf; const char *end = buf + len; size_t todo; /* number of bytes to do in this pass */ - size_t skipped; /* statistics */ + size_t skipped = 0; /* statistics */ cmp_buf = malloc(flash->sector_size); if (cmp_buf) {
Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org> --- common/cmd_sf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)