summaryrefslogtreecommitdiff
path: root/errlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'errlog.c')
-rw-r--r--errlog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/errlog.c b/errlog.c
index cc6a89f5..3c5e0af8 100644
--- a/errlog.c
+++ b/errlog.c
@@ -32,6 +32,9 @@ VLogError(const char *file, int line, const char *func, const CHAR16 *fmt,
ms_va_list args2;
CHAR16 **newerrs;
+ if (file == NULL || func == NULL || fmt == NULL)
+ return EFI_INVALID_PARAMETER;
+
newerrs = ReallocatePool(errs, (nerrs + 1) * sizeof(*errs),
(nerrs + 3) * sizeof(*errs));
if (!newerrs)