summaryrefslogtreecommitdiff
path: root/EdkUnixPkg
diff options
context:
space:
mode:
Diffstat (limited to 'EdkUnixPkg')
-rw-r--r--EdkUnixPkg/Sec/UgaX11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkUnixPkg/Sec/UgaX11.c b/EdkUnixPkg/Sec/UgaX11.c
index 565689a727..5fbdeae1e2 100644
--- a/EdkUnixPkg/Sec/UgaX11.c
+++ b/EdkUnixPkg/Sec/UgaX11.c
@@ -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;