From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web08.5798.1611896922455927051 for ; Thu, 28 Jan 2021 21:08:42 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=MW6lFEiB; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=06631716d4=abner.chang@hpe.com) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10T52dlV004965; Fri, 29 Jan 2021 05:08:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id; s=pps0720; bh=sCwH1dRyF1jSnooPPmhSEV2F5vo30SWX0WFYpFSUJSw=; b=MW6lFEiB+BM6nVoY0SZ+PIvZyu1ly8TVn/iKfusVTUmerAJ1u9aMiEUm3o15Iii/ZeoM G8CwNQewCnVoLXrLS2+1Tg4j3oPjDwNFLvPAsqCRqy7Zk0AnaHDQsBfoBCLp9Xk9LIaB PEcarD5VSCP9yxlWFw9+o1FKU5VYSKFqFRc3d+iTQHkxL5pRSHKvk9qKANty5yQjBfOE 9ackbI6+IX59iUdIiDPcjiZtrnZADwC3SdNig/tyXT8HK2iYAj8gGHNXbVdCuAT27++m Kwf/z+OKMzbQKDhq+6rwr/lti9h12dMEQdfI86b4vMkxQPlACvjUgAoGlNZ75MOk/qmF yQ== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 36bcf15f3u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Jan 2021 05:08:41 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id 0529774; Fri, 29 Jan 2021 05:08:40 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id CCD9B48; Fri, 29 Jan 2021 05:08:39 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Leif Lindholm , Nickle Wang , Michael D Kinney Subject: [PATCH] RedfishPkg/JsonLib: Fix the mistake of removing code by a accident Date: Fri, 29 Jan 2021 12:19:54 +0800 Message-Id: <20210129041954.20623-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2021-01-29_02:2021-01-28,2021-01-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=917 impostorscore=0 clxscore=1015 adultscore=0 priorityscore=1501 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101290026 json_string_value() in JsonValueGetAsciiString () is removed by a accident when clean up the code. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Nickle Wang Cc: Michael D Kinney --- 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