projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48ee0a8
)
cmd/time.c: Initialize 'repeatable' variable
author
Tom Rini
<trini@konsulko.com>
Wed, 27 Sep 2017 01:12:05 +0000
(21:12 -0400)
committer
Tom Rini
<trini@konsulko.com>
Fri, 6 Oct 2017 15:28:21 +0000
(11:28 -0400)
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
patch
|
blob
|
history
diff --git
a/cmd/time.c
b/cmd/time.c
index de57e3b9dd5e05a1efc2b4b12741b9dc3d5eb03a..2cd8b1a57777e077f63ac9f918b26e405b200524 100644
(file)
--- 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;