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.chang@hpe.com>

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Nickle Wang <nickle.wang@hpe.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Nickle Wang <nickle.wang@hpe.com>
This commit is contained in:
Abner Chang 2021-01-29 11:54:11 +08:00 committed by mergify[bot]
parent 5d7b5cd105
commit bd158441d6
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}