From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A7A73740047 for ; Thu, 4 Jan 2024 09:12:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=l8wZCMnHUN3PSTKfIfkMW5jDW2WJyFsA66sR0wNizgA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1704359548; v=1; b=t1WgasUqJP+Vy3BY++gMWRZIwfvVQ4E8eBWy597/p6EtgvVBv6VYFPKLy1d8HAmdR1X8iyC/ YkkMwlgjm4mJP4GZsHGTBISXq8QGaecGTbCIjJ+bSrNvxjzQ9yDIV8q+qttbw7nRVnQYVgbtt40 uxJCjN/G9573bw9+GF+EZllQ= X-Received: by 127.0.0.2 with SMTP id cpG8YY7687511xb4hWNpa8Jq; Thu, 04 Jan 2024 01:12:28 -0800 X-Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.67]) by mx.groups.io with SMTP id smtpd.web10.50376.1704359547448469188 for ; Thu, 04 Jan 2024 01:12:27 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b4613HBm+/lSp4d0FQ7DCyDArlJMtckivQqj6J8UeiWLPJD5JsuLK/ov75OBm/8/1osnZmMBhKoxBUIvykASdU0lmnbKRMjA3gXl9ld98RQphx1uz0O7SIJ2cMrwjY93inKvFnjTq/PeyEHsLMfEfJED5TapyRB8lf54VQHynhEKC2pC0t0KVULqVCf4aybv6Mrc3PWstqj3aERW9eCSgM4l5WL4WWVQRn21+TzhLRda9WXsiRRWLvXds3cuG4u+b8f9tBbXjWDwKXdAJxwv8CQbu8oYwgyudDec9+GPwoxVKziWTfJ6eesMXZVvi/OyED0msyo5Ga9wJuwhKt2IHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iO/FPoWijDK/yASpXPxbQ/b4ywxfoxlb2e4ymhCzUhQ=; b=LLuJmSUduPkZGrHFUDFytV+s8xqXbA6wEFvigNtmW7UoyrSzUOP2v8ujJvsyU81dqg+ov2aGYyfCWX8tSaQyl2re3Q5rTrgGuQw+SMe+xNNYkz3JUoY3NbWrHyFgs1KEPSZ3d1tJ0gCS391zAhqlCwRyAW+OGcmxPw9MugFkutGQ/1jbfXNd1GHwkIDl/W97zU2XqPoaIRU0kaOndBh3KlhkqSx8geBspukWtXTt3BA2ua/rYT1rZTe5Yi4MB3o3/K1hO70Q4zY2nWrUSaYCdUDHlJwMKccqh472V6LUzVdIycYQf0EjEntG23fyfN6NzbCFoOl+BFgUSHBB+AMvMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from CY5PR13CA0072.namprd13.prod.outlook.com (2603:10b6:930:a::35) by CH3PR12MB8660.namprd12.prod.outlook.com (2603:10b6:610:177::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.15; Thu, 4 Jan 2024 09:12:23 +0000 X-Received: from CY4PEPF0000EDD4.namprd03.prod.outlook.com (2603:10b6:930:a:cafe::e) by CY5PR13CA0072.outlook.office365.com (2603:10b6:930:a::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13 via Frontend Transport; Thu, 4 Jan 2024 09:12:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000EDD4.mail.protection.outlook.com (10.167.241.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7159.9 via Frontend Transport; Thu, 4 Jan 2024 09:12:22 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 4 Jan 2024 03:12:15 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [edk2-redfish-client][PATCH V2] RedfishClientPkg/libredfish: Fix build error Date: Thu, 4 Jan 2024 17:11:59 +0800 Message-ID: <20240104091159.957-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EDD4:EE_|CH3PR12MB8660:EE_ X-MS-Office365-Filtering-Correlation-Id: 48163523-e612-4e6c-0f5c-08dc0d0542e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: IWooPgJUePPSxSJ2Yu1oarPPd0CR3p35M1EcBvpWwlk3B1sd0YdVPM6MGTQ53xT/ICLNKmd7iMjTdQZpYW5RZLABD/8uZpXRl9MIgsIxL5zKVY7kSggcwvCcJ++GkcuqjBSsBqb2Bm/FGCKr94VhagylucGD76L8wQ6Y1QR9kVIx+RS4iSrDyXnDvL9Bt0k30w+IyHv7/WG8KRX4WUawHQTK37pl1xsNLOYECagPw9oP/r6v0DOPRyX7uFsYnJvyPHH05BUKGg+oGNKJZoTp7t4IpzuQZiHNpSS0Mv/rbtFPpsO0Uwv4ZAMGGfAlSQ5UCAxQOl1yMIk5XCr+C36JAFWLniqYb8PoRVqbN7SBXv6yVfu0x3AgqdEfHt+MQbCvqfds85BF5QQF8gM9F8YOiqtEum4CEWqA9075Gje7rcBAWNwj8wjukX/QttyZzMPwuH4Z+peTiAynMzNFtDrNzwVYXhT3zket07CoxHdYd3r5vvUqca2HKhwZWslwuXLrdiWfQvyU8SzLKLVSfFK3THL5rPR0mmnW5CNAstdWmtAxWciUYZb1ExBa2oB7ESLrSGI0viL+Ru2vTm17MYzos3EWMmA6bzHtcLUNsHLC2xxHOWkSMoImT5WWNAK14twSBRdTmHY+paj41G5mdDJQPTPgG3lW3qZH8tfSrA02Msej3+vMrIUbcxAJTmCive9av5xq9ouxUu+vjBdeuHWCB6tB1qYgFYOVvyyd+3cDp+Gv3LZZ7vqhqtOq3fOrvzwezkkrdFsJ1/7d3tRN397HzpNIHd/TGJ2ratcZATEY9ZutfoaLck3uQLITfZvM7/Kx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 09:12:22.6354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 48163523-e612-4e6c-0f5c-08dc0d0542e5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8660 Precedence: Bulk List-Subscribe: List-Help: 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@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: n3iD3jXq5Mg6ks3wyFWbzQXWx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=t1WgasUq; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") From: Abner Chang Fix uninitialized variable build error Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy --- .../PrivateLibrary/RedfishLib/edk2libredfish/src/service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/= service.c b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/s= ervice.c index ddd635fe44..293ca59c02 100644 --- a/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c +++ b/RedfishClientPkg/PrivateLibrary/RedfishLib/edk2libredfish/src/service= .c @@ -11,6 +11,7 @@ Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . + Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -1260,7 +1261,8 @@ deleteUriFromServiceEx ( CHAR8 ContentLengthStr[80]; size_t contentLength; =20 - ret =3D NULL; + ret =3D NULL; + contentLength =3D 0; =20 if ((service =3D=3D NULL) || (uri =3D=3D NULL) || (StatusCode =3D=3D NUL= L)) { return NULL; --=20 2.37.1.windows.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 (#113157): https://edk2.groups.io/g/devel/message/113157 Mute This Topic: https://groups.io/mt/103519379/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-