diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-13 20:54:00 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-02-22 10:45:51 +0800 |
commit | d37fa01fbbe2cf0cd8b49069a71706a33cb4a53e (patch) | |
tree | c1ff64a22d92178368eb8fd14b4eacb9d726ba35 /BaseTools/Source/C/VfrCompile | |
parent | dc4c770763d05297c7de6893a1e34b76499d0b09 (diff) | |
download | edk2-platforms-d37fa01fbbe2cf0cd8b49069a71706a33cb4a53e.tar.xz |
VfrCompile: fix invalid comparison between pointer and integer
This would be valid C but is not valid C++, so change the comparison to do what it has always been doing.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile')
-rw-r--r-- | BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp index 3ca57ed741..2f9797518c 100644 --- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp +++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp @@ -3372,7 +3372,7 @@ CVfrStringDB::GetVarStoreNameFormStringId ( UINT8 BlockType;
EFI_HII_STRING_PACKAGE_HDR *PkgHeader;
- if (mStringFileName == '\0' ) {
+ if (mStringFileName == NULL) {
return NULL;
}
|