diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-26 16:59:24 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-26 16:59:24 -0400 |
commit | 8b3cec7da18645eda7f7cd0b65ee9f2dac573409 (patch) | |
tree | e489425a5bfee5d8ecc6e9d051e019160fc96a40 /cmd | |
parent | bd95e655b2a42a2c8fe649ffae3dfec27eab5759 (diff) | |
download | u-boot-8b3cec7da18645eda7f7cd0b65ee9f2dac573409.tar.gz |
mtdparts: Fix uninitialized scalar usage
When reworking this code to fix other issues found by Coverity, I forgot
to ensure tmp_ep was always cleared before use.
Reported-by: Coverity (CID: 166612)
Fixes: bc028345acc4 ("mtdparts: Fix final outstanding issue reported by Coverity")
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mtdparts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 6e12275b40..3275eb919b 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1751,6 +1751,7 @@ int mtdparts_init(void) /* save it for later parsing, cannot rely on current partition pointer * as 'partition' variable may be updated during init */ memset(tmp_parts, 0, sizeof(tmp_parts)); + memset(tmp_ep, 0, sizeof(tmp_ep)); if (current_partition) strncpy(tmp_ep, current_partition, PARTITION_MAXLEN); |