Fix an unititialized memory read.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2184 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bbahnsen 2007-01-06 17:55:47 +00:00
parent b51468d107
commit a53078b634
1 changed files with 1 additions and 1 deletions

View File

@ -527,7 +527,7 @@ UgaCreate (EFI_UNIX_UGA_IO_PROTOCOL **Uga, CONST CHAR16 *Title)
int title_len;
drv = (UGA_IO_PRIVATE *)
malloc (sizeof (UGA_IO_PRIVATE));
calloc (1, sizeof (UGA_IO_PRIVATE));
if (drv == NULL)
return EFI_OUT_OF_RESOURCES;