cmd/time.c: Initialize 'repeatable' variable
PATCH 1/1 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 <[email protected]>
--- cmd/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/time.c +1 -1
@@ -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 ;
Signature · 1 line
1.9.1
Quoted 4 lines · Tom Rini
We cannot leave this uninitialized, set it to 0.
Reported-by Coverity (CID: 144426)Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171007/9aaba6f0/attachment.sig>