File ovmf.d37fa01fbbe2cf0cd8b49069a71706a33cb4a53e.patch of Package xen

From: Paolo Bonzini <pbonzini@redhat.com>
Date: Mon, 13 Feb 2017 20:54:00 +0800
Subject: d37fa01fbbe2cf0cd8b49069a71706a33cb4a53e

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>
---
 BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
+++ b/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp
@@ -3339,25 +3339,25 @@ CVfrStringDB::GetVarStoreNameFormStringId (
   UINT32      Length;
   UINT8       *StringPtr;
   CHAR8       *StringName;
   CHAR16      *UnicodeString;
   CHAR8       *VarStoreName = NULL;
   CHAR8       *DestTmp;
   UINT8       *Current;
   EFI_STATUS  Status;
   CHAR8       LineBuf[EFI_IFR_MAX_LENGTH];
   UINT8       BlockType;
   EFI_HII_STRING_PACKAGE_HDR *PkgHeader;
   
-  if (mStringFileName == '\0' ) {
+  if (mStringFileName == NULL) {
     return NULL;
   }
 
   if ((pInFile = fopen (LongFilePath (mStringFileName), "rb")) == NULL) {
     return NULL;
   }
 
   //
   // Get file length.
   //
   fseek (pInFile, 0, SEEK_END);
   Length = ftell (pInFile);
openSUSE Build Service is sponsored by