diff --git a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c index a0cb2da0fe..28f05eb1de 100644 --- a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c +++ b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c @@ -1503,7 +1503,7 @@ BcfgLibraryRegisterBcfgCommand ( IN CONST CHAR16 *Name ) { - if (gShellBcfgHiiHandle) { + if (gShellBcfgHiiHandle != NULL) { return (EFI_SUCCESS); }