From: Tom Rini Date: Wed, 27 Sep 2017 01:12:05 +0000 (-0400) Subject: cmd/time.c: Initialize 'repeatable' variable X-Git-Tag: v2025.01-rc5-pxa1908~5600 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=146dda391126d4f199c7692f2342efcc34b45ebd;p=u-boot.git 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 --- diff --git a/cmd/time.c b/cmd/time.c index de57e3b9dd..2cd8b1a577 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;