]> git.proxmox.com Git - mirror_edk2.git/commitdiff
VfrCompile: fix invalid comparison between pointer and integer
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 12:54:00 +0000 (20:54 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Wed, 22 Feb 2017 02:45:51 +0000 (10:45 +0800)
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>
BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp

index 3ca57ed74184c41645cd1c7a60c5ab2e1a2ac4eb..2f9797518c324af135622e4f0e062837adb8b91e 100644 (file)
@@ -3372,7 +3372,7 @@ CVfrStringDB::GetVarStoreNameFormStringId (
   UINT8       BlockType;\r
   EFI_HII_STRING_PACKAGE_HDR *PkgHeader;\r
   \r
-  if (mStringFileName == '\0' ) {\r
+  if (mStringFileName == NULL) {\r
     return NULL;\r
   }\r
 \r