summaryrefslogtreecommitdiffstats
path: root/util/cbmem/cbmem.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2016-07-29 21:55:44 +0200
committerMartin Roth <martinroth@google.com>2016-07-31 19:15:34 +0200
commitbe8f0fa2bb43f80915d0635c06fbfda0285f113f (patch)
tree8e84f78fba5c167c94ae445ed5f9454892b47b38 /util/cbmem/cbmem.c
parent8260650cde3db83e8faf9dad66eac3dc5f0937eb (diff)
downloadcoreboot-be8f0fa2bb43f80915d0635c06fbfda0285f113f.tar.gz
coreboot-be8f0fa2bb43f80915d0635c06fbfda0285f113f.tar.bz2
coreboot-be8f0fa2bb43f80915d0635c06fbfda0285f113f.zip
util/cbmem: Initialize variable
There can be cases where "found" wasn't initialized, do so. Change-Id: Ifef8d61daa70e27ec39b7a8f3481d2316dfaa36e Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Found-by: Coverity Scan #1347334 Reviewed-on: https://review.coreboot.org/15969 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/cbmem/cbmem.c')
-rw-r--r--util/cbmem/cbmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbmem/cbmem.c b/util/cbmem/cbmem.c
index 5e56d11db4f0..885d460252d7 100644
--- a/util/cbmem/cbmem.c
+++ b/util/cbmem/cbmem.c
@@ -259,7 +259,7 @@ static struct lb_cbmem_ref parse_cbmem_ref(struct lb_cbmem_ref *cbmem_ref)
static int parse_cbtable(u64 address, size_t table_size, uint8_t abort_on_failure)
{
- int i, found, ret = 0;
+ int i, found = 0, ret = 0;
void *buf;
debug("Looking for coreboot table at %" PRIx64 " %zd bytes.\n",