mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: util/broadcom: Initialize variable
It's later tested for NULL, but never initialized to make that test work reliably. Change-Id: Iadee1af224507a6dd39956306f3eafa687895176 Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Found-by: Coverity Scan #1323515 Original-Reviewed-on: https://review.coreboot.org/17880 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Martin Roth <martinroth@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/421214 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
066676b4da
commit
33b86a139c
1 changed files with 2 additions and 2 deletions
|
@ -77,12 +77,12 @@ int AddImagePayload(char *h, char *filename, unsigned int filesize)
|
|||
*---------------------------------------------------------------------*/
|
||||
int CreateSecureBootImage(int ac, char **av)
|
||||
{
|
||||
char *outfile, *configfile, *arg, *privkey = NULL, *bl = NULL;
|
||||
char *configfile = NULL, *arg, *privkey = NULL, *bl = NULL;
|
||||
int status = 0;
|
||||
uint32_t sbiLen;
|
||||
struct stat file_stat;
|
||||
uint32_t add_header = 1;
|
||||
outfile = *av;
|
||||
char *outfile = *av;
|
||||
unsigned int filesize;
|
||||
char *buf;
|
||||
--ac; ++av;
|
||||
|
|
Loading…
Add table
Reference in a new issue