UPSTREAM: util/cbmem: Initialize variable
There can be cases where "found" wasn't initialized, do so. BUG=None BRANCH=None TEST=None Change-Id: I3a8dc10987e4a0df72f7f779f62083b98a428a9c 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> Reviewed-on: https://chromium-review.googlesource.com/366277 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
c9371ffe8f
commit
bc685039b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue