diff options
author | Balaji Manigandan B <balaji.manigandan@intel.com> | 2021-04-27 23:54:17 +0530 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-29 04:46:52 +0000 |
commit | 563a1827793483d275eb3f1937493d7afa6fb7e5 (patch) | |
tree | cce9078ddd8c09c4148ab7acbc006fcef1c277a6 /util | |
parent | 5c662bb617081e57123638c26e69b3263990ed9b (diff) | |
download | chrome-ec-563a1827793483d275eb3f1937493d7afa6fb7e5.tar.gz |
util/ectool.c: Fixing uninitialized variable error
While building chromeec outside of chroot environment,
warnings are treated as errors with the default configuration.
The variable "progress" is used before it was initialized and
is causing the build to fail.
With this change, the error is no more seen.
Signed-off-by: Balaji Manigandan B <balaji.manigandan@intel.com>
Change-Id: I2ebcc6440196e005a57c09f3869ec64440f2dc17
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2853685
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: Balaji Manigandan <balaji.manigandan@intel.corp-partner.google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c index 364a31e6e2..e8a57c031d 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -9430,7 +9430,7 @@ static int cmd_pchg_update(int port, uint32_t address, uint32_t version, struct ec_response_pchg_update *r = ec_inbuf; FILE *fp; size_t len, total; - int progress; + int progress = 0; int rv; fp = fopen(filename, "rb"); |