Dereference MatchLang before comparing it with a character. Cc: David Wei <david....@intel.com> Cc: Mang Guo <mang....@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Gary Lin <g...@suse.com> --- .../SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c index 7cf3453a62f4..612e1261fdaa 100644 --- a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c +++ b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFunction.c @@ -73,7 +73,7 @@ CurrentLanguageMatch ( // Find the best matching RFC 4646 language, compute the offset. // CompareLength = AsciiStrLen (BestLanguage); - for (MatchLang = Languages, (*Offset) = 0; MatchLang != '\0'; (*Offset)++) { + for (MatchLang = Languages, (*Offset) = 0; *MatchLang != '\0'; (*Offset)++) { // // Seek to the end of current match language. // -- 2.19.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel