diff options
-rw-r--r-- | lib/efi_selftest/efi_selftest_tpl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efi_selftest/efi_selftest_tpl.c b/lib/efi_selftest/efi_selftest_tpl.c index 0b78ee7595..b8c0e70262 100644 --- a/lib/efi_selftest/efi_selftest_tpl.c +++ b/lib/efi_selftest/efi_selftest_tpl.c @@ -26,7 +26,8 @@ static void EFIAPI notify(struct efi_event *event, void *context) { unsigned int *count = context; - ++*count; + if (count) + ++*count; } /* |