Reviewed-by: Nickle Wang <nickle.w...@hpe.com>

Thanks,
Nickle

> -----Original Message-----
> From: Chang, Abner (HPS SW/FW Technologist) <abner.ch...@hpe.com>
> Sent: Friday, January 29, 2021 12:20 PM
> To: devel@edk2.groups.io
> Cc: Leif Lindholm <l...@nuviainc.com>; Wang, Nickle (HPS SW)
> <nickle.w...@hpe.com>; Michael D Kinney <michael.d.kin...@intel.com>
> 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 <abner.ch...@hpe.com>
> 
> Cc: Leif Lindholm <l...@nuviainc.com>
> Cc: Nickle Wang <nickle.w...@hpe.com>
> Cc: Michael D Kinney <michael.d.kin...@intel.com>
> ---
>  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: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to