[U-Boot] [PATCH] cmd/time.c: Initialize 'repeatable' variable

27 Sep
2017
27 Sep
'17
3:12 a.m.
We cannot leave this uninitialized, set it to 0.
Reported-by: Coverity (CID: 144426) Signed-off-by: Tom Rini trini@konsulko.com --- cmd/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/time.c b/cmd/time.c index de57e3b9dd5e..2cd8b1a57777 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;
--
1.9.1

7 Oct
7 Oct
3:09 p.m.
New subject: [U-Boot] cmd/time.c: Initialize 'repeatable' variable
On Tue, Sep 26, 2017 at 09:12:05PM -0400, Tom Rini wrote:
We cannot leave this uninitialized, set it to 0.
Reported-by: Coverity (CID: 144426) Signed-off-by: Tom Rini trini@konsulko.com
Applied to u-boot/master, thanks!
--
Tom
2770
Age (days ago)
2780
Last active (days ago)
1 comments
1 participants
participants (1)
-
Tom Rini