Reviewed-by: Nickle Wang <[email protected]> Thanks, Nickle
> -----Original Message----- > From: Chang, Abner (HPS SW/FW Technologist) <[email protected]> > Sent: Friday, January 29, 2021 12:20 PM > To: [email protected] > Cc: Leif Lindholm <[email protected]>; Wang, Nickle (HPS SW) > <[email protected]>; Michael D Kinney <[email protected]> > Subject: [PATCH] RedfishPkg/JsonLib: Fix the mistake of removing code by a > accident > > json_string_value() in JsonValueGetAsciiString () is removed by a accident > when clean up the code. > > Signed-off-by: Abner Chang <[email protected]> > > Cc: Leif Lindholm <[email protected]> > Cc: Nickle Wang <[email protected]> > Cc: Michael D Kinney <[email protected]> > --- > RedfishPkg/Library/JsonLib/JsonLib.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/RedfishPkg/Library/JsonLib/JsonLib.c > b/RedfishPkg/Library/JsonLib/JsonLib.c > index 34ff381aee..d729e3ec27 100644 > --- a/RedfishPkg/Library/JsonLib/JsonLib.c > +++ b/RedfishPkg/Library/JsonLib/JsonLib.c > @@ -430,10 +430,10 @@ JsonValueGetAsciiString ( > IN EDKII_JSON_VALUE Json > ) > { > - CHAR8 *AsciiStr; > + CONST CHAR8 *AsciiStr; > UINTN Index; > > - AsciiStr = (CHAR8 *) ((json_t *) Json); > + AsciiStr = json_string_value ((json_t *) Json); > if (AsciiStr == NULL) { > return NULL; > } > -- > 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#71771): https://edk2.groups.io/g/devel/message/71771 Mute This Topic: https://groups.io/mt/80203694/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
