Skip to content

Commit

Permalink
Don't pass uninitialized data to efi_guid_to_str().
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Sep 25, 2014
1 parent 38fa9b2 commit bb0e286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/unparse_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static ssize_t
unparse_vendor_path(char *buffer, size_t buffer_size, char *prefix,
VENDOR_DEVICE_PATH *path)
{
char *text_guid;
char *text_guid = NULL;
unsigned char *q = (uint8_t *)path + 20;
int rc;

Expand Down Expand Up @@ -367,7 +367,7 @@ unparse_media_path(char *buffer, size_t buffer_size, EFI_DEVICE_PATH *path)
CDROM_DEVICE_PATH *cdrom = (CDROM_DEVICE_PATH *)path;
MEDIA_PROTOCOL_DEVICE_PATH *media = (MEDIA_PROTOCOL_DEVICE_PATH *)path;
FILE_PATH_DEVICE_PATH *file = (FILE_PATH_DEVICE_PATH *)path;
char *text_guid;
char *text_guid = NULL;
char file_name[80];
memset(file_name, 0, sizeof(file_name));
char a[16], b[16], c[16];
Expand Down

0 comments on commit bb0e286

Please sign in to comment.