Reviewed-by: Zailiang Sun <[email protected]> > -----Original Message----- > From: Kinney, Michael D > Sent: Thursday, May 9, 2019 12:31 PM > To: [email protected] > Cc: Michael D Kinney <[email protected]>; Sun, > Zailiang <[email protected]>; Qian, Yi <[email protected]> > Subject: [Patch 05/16] Vlv2TbltDevicePkg/SmBiosMiscDxe: Fix GCC build > issue > > From: Michael D Kinney <[email protected]> > > Fix loop comparison for end of languages. > > Cc: Zailiang Sun <[email protected]> > Cc: Yi Qian <[email protected]> > Signed-off-by: Michael D Kinney <[email protected]> > --- > .../MiscNumberOfInstallableLanguagesFunction.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git > a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFu > nction.c > b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFu > nction.c > index 9fff8d8850..4a96a2c465 100644 > --- > a/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFu > nction.c > +++ > b/Vlv2TbltDevicePkg/SmBiosMiscDxe/MiscNumberOfInstallableLanguagesFu > nction.c > @@ -1,10 +1,12 @@ > /*++ > > -Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR> > - > > +Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR> > + > + > SPDX-License-Identifier: BSD-2-Clause-Patent > > - > > + > + > > > Module Name: > @@ -68,7 +70,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.21.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#40291): https://edk2.groups.io/g/devel/message/40291 Mute This Topic: https://groups.io/mt/31551774/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
