diff options
author | Tom Rini <trini@konsulko.com> | 2017-09-26 21:12:05 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-06 11:28:21 -0400 |
commit | 146dda391126d4f199c7692f2342efcc34b45ebd (patch) | |
tree | f83db96c5da0e0e568f8ecadd9fd0ca707e209e5 /cmd/time.c | |
parent | 48ee0a87bc46a6f863ffd9e0396b7a068dd68c50 (diff) | |
download | u-boot-146dda391126d4f199c7692f2342efcc34b45ebd.tar.gz u-boot-146dda391126d4f199c7692f2342efcc34b45ebd.tar.bz2 u-boot-146dda391126d4f199c7692f2342efcc34b45ebd.zip |
cmd/time.c: Initialize 'repeatable' variable
We cannot leave this uninitialized, set it to 0.
Reported-by: Coverity (CID: 144426)
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/time.c')
-rw-r--r-- | cmd/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/time.c b/cmd/time.c index de57e3b9dd..2cd8b1a577 100644 --- a/cmd/time.c +++ b/cmd/time.c @@ -28,7 +28,7 @@ static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { ulong cycles = 0; int retval = 0; - int repeatable; + int repeatable = 0; if (argc == 1) return CMD_RET_USAGE; |