Skip to content

Commit bd15844

Browse files
Abner Changmergify[bot]
authored andcommitted
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>
1 parent 5d7b5cd commit bd15844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RedfishPkg/Library/JsonLib/JsonLib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ JsonValueGetAsciiString (
430430
IN EDKII_JSON_VALUE Json
431431
)
432432
{
433-
CHAR8 *AsciiStr;
433+
CONST CHAR8 *AsciiStr;
434434
UINTN Index;
435435

436-
AsciiStr = (CHAR8 *) ((json_t *) Json);
436+
AsciiStr = json_string_value ((json_t *) Json);
437437
if (AsciiStr == NULL) {
438438
return NULL;
439439
}

0 commit comments

Comments
 (0)