Blame 0010-VfrCompile-fix-invalid-comparison-between-pointer-an.patch
|
Paolo Bonzini |
d7ad69 |
From 06c3814868bebbe7f2cd9a51c11fbfc407c14349 Mon Sep 17 00:00:00 2001
|
|
Paolo Bonzini |
d7ad69 |
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
Paolo Bonzini |
d7ad69 |
Date: Mon, 13 Feb 2017 13:49:14 +0100
|
|
Paolo Bonzini |
d7ad69 |
Subject: [PATCH] VfrCompile: fix invalid comparison between pointer and
|
|
Paolo Bonzini |
d7ad69 |
integer
|
|
Paolo Bonzini |
d7ad69 |
|
|
Paolo Bonzini |
d7ad69 |
This would be valid C but is not valid C++, so change the comparison
|
|
Paolo Bonzini |
d7ad69 |
to do what it has always been doing.
|
|
Paolo Bonzini |
d7ad69 |
|
|
Paolo Bonzini |
d7ad69 |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
Paolo Bonzini |
d7ad69 |
---
|
|
Paolo Bonzini |
d7ad69 |
BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 +-
|
|
Paolo Bonzini |
d7ad69 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Paolo Bonzini |
d7ad69 |
|
|
Paolo Bonzini |
d7ad69 |
diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
|
|
Paolo Bonzini |
d7ad69 |
index 3ca57ed..2f97975 100644
|
|
Paolo Bonzini |
d7ad69 |
--- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
|
|
Paolo Bonzini |
d7ad69 |
+++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
|
|
Paolo Bonzini |
d7ad69 |
@@ -3372,7 +3372,7 @@ CVfrStringDB::GetVarStoreNameFormStringId (
|
|
Paolo Bonzini |
d7ad69 |
UINT8 BlockType;
|
|
Paolo Bonzini |
d7ad69 |
EFI_HII_STRING_PACKAGE_HDR *PkgHeader;
|
|
Paolo Bonzini |
d7ad69 |
|
|
Paolo Bonzini |
d7ad69 |
- if (mStringFileName == '\0' ) {
|
|
Paolo Bonzini |
d7ad69 |
+ if (mStringFileName == NULL) {
|
|
Paolo Bonzini |
d7ad69 |
return NULL;
|
|
Paolo Bonzini |
d7ad69 |
}
|
|
Paolo Bonzini |
d7ad69 |
|
|
Paolo Bonzini |
d7ad69 |
--
|
|
Paolo Bonzini |
d7ad69 |
2.9.3
|
|
Paolo Bonzini |
d7ad69 |
|