Skip to content
Snippets Groups Projects
Commit 18c991ca authored by Tien Fong Chee's avatar Tien Fong Chee Committed by Simon Glass
Browse files

libfdt: Initialize the stack variable


Report Coverity log:
The code uses a variable that has not
been initialized, leading to unpredictable
or unintended results.

Reported-by: Coverity (CID: 60519)
Signed-off-by: default avatarTien Fong Chee <tien.fong.chee@intel.com>
parent d503114c
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ int fdt_find_regions(const void *fdt, char * const inc[], int inc_count,
struct fdt_region region[], int max_regions,
char *path, int path_len, int add_string_tab)
{
int stack[FDT_MAX_DEPTH];
int stack[FDT_MAX_DEPTH] = { 0 };
char *end;
int nextoffset = 0;
uint32_t tag;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment