mirror of https://github.com/thesofproject/sof.git
manifest: fix buffer init in resign
Set buffer to NULL to prevent freeing bogus memory in error case. Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
This commit is contained in:
parent
3c232422a7
commit
0f64a20183
|
@ -1432,9 +1432,9 @@ out:
|
|||
int resign_image(struct image *image)
|
||||
{
|
||||
int key_size, key_file_size;
|
||||
void *buffer = NULL;
|
||||
size_t size, read;
|
||||
FILE *in_file;
|
||||
void *buffer;
|
||||
int ret, i;
|
||||
|
||||
/* open image for reading */
|
||||
|
|
Loading…
Reference in New Issue