From nobody Mon Nov 25 10:59:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70885+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70885+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1611896923; cv=none; d=zohomail.com; s=zohoarc; b=BXEGW4giH9UZqTqkM00lNN7XCSx6r5wOopPIYyIrUPhWYj+qdf9v+x6eIzZJY7a8cZv+E33Hb9xehAQu8I1PDk3MejQOnbMZwrYS5yDlM2oTuAiPJ21pWmUkzf4jqSNWcCUTLRhA4lzH7DT7UElAYlqQnL11skB39TOG1Pp9S/s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611896923; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=LKdDVa4DtW55x80AniA1TH9z9N29zTh6Md32jZCqxUA=; b=mLNQOMzgxyG6YRvd3Dy0k/vsHKZ1NYH6v0XZzmfJcz7ceYhiTMYThPoIa3EXaCnTjaYkmpTIiMNfxgNmOSTR1edk7OWfUkftbR0q1lRA33CSXPxVOeALv/JvwmuL4QQ8M/lhlqkU8qE7NrzyBYJYidO+vwKiZUT8C04+9IM82uw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70885+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 161189692334719.79370062339865; Thu, 28 Jan 2021 21:08:43 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id zZ8fYY1788612xoz202jzj24; Thu, 28 Jan 2021 21:08:43 -0800 X-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 X-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 X-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 X-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) X-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: [edk2-devel] [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-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: 27lB3oD7z7NIXPeqhVIX6qe8x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1611896923; bh=v02jIB0YoMWds03AcyzGY0E+uBIYB+gddYPahVmJmjI=; h=Cc:Date:From:Reply-To:Subject:To; b=g/L31qCzni5vVB2V6fmgkK8NZXH+MSSnSz0EHJpUlyftJCYPBeVAE2dGC+NBhANXDft czrfCpjifLQSaDih+yRf83/jf7OMP5ZPt/a3wJ+L+O7/4Lp2NSs5XH7vFwdZybjeunBp+ jE2jyyLfWYFPWqplYaXlqAl5aFmKWDrjSVc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Liming Gao Reviewed-by: Nickle Wang --- RedfishPkg/Library/JsonLib/JsonLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedfishPkg/Library/JsonLib/JsonLib.c b/RedfishPkg/Library/Json= Lib/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; =20 - AsciiStr =3D (CHAR8 *) ((json_t *) Json); + AsciiStr =3D json_string_value ((json_t *) Json); if (AsciiStr =3D=3D NULL) { return NULL; } --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#70885): https://edk2.groups.io/g/devel/message/70885 Mute This Topic: https://groups.io/mt/80203694/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-