diff --git a/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c b/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c index e48cbe834d..4abe14f338 100644 --- a/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c +++ b/EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c @@ -101,7 +101,7 @@ Returns: return 0; } - if (ErrorString != '\0') { + if (ErrorString != NULL) { if (gST->StdErr != NULL) { // // To be extra safe make sure StdErr has been initialized