From nobody Mon Feb 9 16:19:14 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1613144447; cv=none; d=zohomail.com; s=zohoarc; b=IjQidt/hsTkZKFjipqIT9L9AVffIkViaVralFMuDs1FTt4tAD1CQHHWHJ1vvHH5PtyJo9+i3KBSadH3lCDOPHfrCf2K/K8M7xSBszpsUdtxx3pq98NmMoUv8yzjA6YI4F2PG5NlwricKQt8uOPahBQqrxU61fMFcH1Qa6fb2AkY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613144447; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Bd7zwdXs0tjAQxDAtula1yHgHckIZfXNDszXMsHRHvk=; b=WBJgMJ6nXkA1j3U12dNOLhr+peo9oLbbhf0JSSFjTwNzCWm0GmOFH1D1MQ1dSN7LCsrv7NkpzY7mMq51ksUatlVJjijlTyqkAkxfiv2esIYvWbgUFIN/RDhpeBgZRpiGamHuXsmxkWcRAa6nehFbxOsbUu7nxCzmsA5KRJ2DMZQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1613144447467250.66528532663756; Fri, 12 Feb 2021 07:40:47 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.84308.158049 (Exim 4.92) (envelope-from ) id 1lAaYV-0000nE-37; Fri, 12 Feb 2021 15:40:27 +0000 Received: by outflank-mailman (output) from mailman id 84308.158049; Fri, 12 Feb 2021 15:40:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAaYU-0000n7-Vu; Fri, 12 Feb 2021 15:40:26 +0000 Received: by outflank-mailman (input) for mailman id 84308; Fri, 12 Feb 2021 15:40:25 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lAaYT-0000ix-Nr for xen-devel@lists.xenproject.org; Fri, 12 Feb 2021 15:40:25 +0000 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 01228532-2bd6-448b-a830-03df601056c7; Fri, 12 Feb 2021 15:40:16 +0000 (UTC) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 01228532-2bd6-448b-a830-03df601056c7 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1613144416; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AkTySBnlGFyVMAxg/gcAuosdJVnwo4RsV9buhZjnQmI=; b=Fto+Pz5B0Aef1KmZxa1alOzmlvDsusbB3sqf88EPWlMLjp7zLCuIso6G mfC/QAYmExw9rfZutIm72t1eKhfvdNwJgJT5F8u7YmVOnvNxW44AIO+c6 GBMeoPHf+A5alb2okvxLmGfAEwIi1hN5BXTS0SzF1oQM79PEvuWbsq+IM 4=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: HownhAwJMB882tcBvJ6G+QOZ8MyF74dHFD5WPKB4/YdYun8zrgjFznZa7eMmo3fa6yqRCEK46f c4CFRvhfwylaL3mc3COpuLJLVUeU7P5OkvJI9wV6troHksPpTN0Pzi1s9/ff44nmfA9bo+25Nf ZsGTKWfrZzgZGcZtPbpTKihFpvu9Y03/bNMaXVxR0YjKj8hzxYAJ3t6h7trMXH8etYxCBhGmYi JsCe0LW4lgIg8TcIcG9FrNXj6eokQGwB1VwTJdDlV0JDuXCk4din0IC+sfucPWf3j80XJbtVVH g08= X-SBRS: 5.2 X-MesageID: 38508885 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,174,1610427600"; d="scan'208";a="38508885" From: Andrew Cooper To: Xen-devel CC: Andrew Cooper , Ian Jackson , Wei Liu , Anthony PERARD Subject: [PATCH 05/10] tools/libxl: Fix uninitialised variable in libxl__write_stub_dmargs() Date: Fri, 12 Feb 2021 15:39:48 +0000 Message-ID: <20210212153953.4582-6-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210212153953.4582-1-andrew.cooper3@citrix.com> References: <20210212153953.4582-1-andrew.cooper3@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) Various version of gcc, when compiling with -Og, complain: libxl_dm.c: In function =E2=80=98libxl__write_stub_dmargs=E2=80=99: libxl_dm.c:2166:16: error: =E2=80=98dmargs=E2=80=99 may be used uninitial= ized in this function [-Werror=3Dmaybe-uninitialized] rc =3D libxl__xs_write_checked(gc, t, path, dmargs); ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ It can't, but only because of how the is_linux_stubdom checks line up. Signed-off-by: Andrew Cooper Reviewed-by: Ian Jackson --- CC: Ian Jackson CC: Wei Liu CC: Anthony PERARD --- tools/libs/light/libxl_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/light/libxl_dm.c b/tools/libs/light/libxl_dm.c index 1ca21e4b81..7bbb8792ea 100644 --- a/tools/libs/light/libxl_dm.c +++ b/tools/libs/light/libxl_dm.c @@ -2099,7 +2099,7 @@ static int libxl__write_stub_dmargs(libxl__gc *gc, { struct xs_permissions roperm[2]; xs_transaction_t t =3D XBT_NULL; - char *dmargs; + char *dmargs =3D NULL; int rc; =20 roperm[0].id =3D 0; --=20 2.11.0