Skip to content

Commit 8ab67e0

Browse files
trinikeveryang
authored andcommitted
UPSTREAM: cmd/time.c: Initialize 'repeatable' variable
We cannot leave this uninitialized, set it to 0. Change-Id: Ic8f3dd4d7395921bf4269a618aaf92a717dbfe46 Reported-by: Coverity (CID: 144426) Signed-off-by: Tom Rini <[email protected]> Signed-off-by: Kever Yang <[email protected]> (cherry picked from commit 146dda3)
1 parent 7f2f366 commit 8ab67e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int do_time(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
2828
{
2929
ulong cycles = 0;
3030
int retval = 0;
31-
int repeatable;
31+
int repeatable = 0;
3232

3333
if (argc == 1)
3434
return CMD_RET_USAGE;

0 commit comments

Comments
 (0)