]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/time.c: Initialize 'repeatable' variable
authorTom Rini <trini@konsulko.com>
Wed, 27 Sep 2017 01:12:05 +0000 (21:12 -0400)
committerTom 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

index de57e3b9dd5e05a1efc2b4b12741b9dc3d5eb03a..2cd8b1a57777e077f63ac9f918b26e405b200524 100644 (file)
@@ -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;