compilation: fix uninitialized variables warning

Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Signed-off-by: Nigel Croxon <nigel.croxon@hp.com>
This commit is contained in:
Nigel Croxon 2014-01-16 10:46:15 -05:00
parent 9b8f92e3a1
commit 7bcb832680
3 changed files with 4 additions and 2 deletions

View File

@ -95,7 +95,7 @@ STATIC UNICODE_TO_CHAR UnicodeToPcAnsiOrAscii[] = {
*/
{ ARROW_DOWN, 0x19, L'v'},
{ 0x0000, 0x00 }
{ 0x0000, 0x00, L'\0' }
};

View File

@ -1007,7 +1007,7 @@ LibDuplicateDevicePathInstance (
)
{
EFI_DEVICE_PATH *NewDevPath,*DevicePathInst,*Temp;
UINTN Size;
UINTN Size = 0;
//
// get the size of an instance from the input

View File

@ -165,6 +165,8 @@ Returns:
if (!*Buffer && BufferSize) {
*Status = EFI_BUFFER_TOO_SMALL;
} else {
*Status = EFI_SUCCESS;
}
//