diff options
Diffstat (limited to 'meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch')
-rw-r--r-- | meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch b/meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch new file mode 100644 index 0000000000..43bfce4fe3 --- /dev/null +++ b/meta/recipes-core/ovmf/ovmf/0001-VfrCompile-fix-invalid-comparison-between-pointer-an.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From d37fa01fbbe2cf0cd8b49069a71706a33cb4a53e Mon Sep 17 00:00:00 2001 | ||
2 | From: Paolo Bonzini <pbonzini@redhat.com> | ||
3 | Date: Mon, 13 Feb 2017 20:54:00 +0800 | ||
4 | Subject: [PATCH] VfrCompile: fix invalid comparison between pointer and | ||
5 | integer | ||
6 | |||
7 | This would be valid C but is not valid C++, so change the comparison to do what it has always been doing. | ||
8 | |||
9 | Contributed-under: TianoCore Contribution Agreement 1.0 | ||
10 | Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> | ||
11 | Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com> | ||
12 | |||
13 | Upstream-Status: Backport | ||
14 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
15 | |||
16 | --- | ||
17 | BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | Index: git/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | ||
21 | =================================================================== | ||
22 | --- git.orig/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | ||
23 | +++ git/BaseTools/Source/C/VfrCompile/VfrUtilityLib.cpp | ||
24 | @@ -3372,7 +3372,7 @@ CVfrStringDB::GetVarStoreNameFormStringI | ||
25 | UINT8 BlockType; | ||
26 | EFI_HII_STRING_PACKAGE_HDR *PkgHeader; | ||
27 | |||
28 | - if (mStringFileName == '\0' ) { | ||
29 | + if (mStringFileName == NULL) { | ||
30 | return NULL; | ||
31 | } | ||
32 | |||