summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAhmad Sharif <asharif@chromium.org>2011-09-07 14:34:34 -0700
committerasharif <asharif@chromium.org>2011-09-07 14:44:16 -0700
commit811b307302574b687e06cd2692c42c4a3fca817c (patch)
tree244022368838ef0a3f2e38c33ce02e8dbde73b73 /common
parent1b86fcbb0ce83120401ae97eaf2fa5477aa00513 (diff)
Initialized skipped and todo to 0.
BUG=chromium-os:20072 TEST=emerged chromeos-u-boot Signed-off-by: Reviewers Change-Id: I7afcb0b6b6ae614e7a32089abac2f44eb3251330 Reviewed-on: http://gerrit.chromium.org/gerrit/7354 Tested-by: asharif <asharif@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_sf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_sf.c b/common/cmd_sf.c
index ca3eebafac..5697e851b6 100644
--- a/common/cmd_sf.c
+++ b/common/cmd_sf.c
@@ -160,8 +160,8 @@ static int spi_flash_update(struct spi_flash *flash, u32 offset,
const char *err_oper = NULL;
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 todo = 0; /* number of bytes to do in this pass */
+ size_t skipped = 0; /* statistics */
cmp_buf = malloc(flash->sector_size);
if (cmp_buf) {