diff options
author | Song, BinX <binx.song@intel.com> | 2016-11-02 10:09:26 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-11-03 10:28:47 +0800 |
commit | 9cc42a92428bb3a2eaea7789b1e34a68c29223b8 (patch) | |
tree | 9bd31ba6d402db756e0465f1d9f985a5721e9d6f /EdkCompatibilityPkg/Foundation | |
parent | b782753fa24229d3b677c6fd5ad5594028d14a8b (diff) | |
download | edk2-platforms-9cc42a92428bb3a2eaea7789b1e34a68c29223b8.tar.xz |
EdkCompatibilityPkg/PrintLite: Fix ErrorPrint() wrong NULL char check
- '\0' -> NULL
- https://bugzilla.tianocore.org/show_bug.cgi?id=47
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Bell Song <binx.song@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'EdkCompatibilityPkg/Foundation')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Library/Dxe/PrintLite/StdErr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
|