From nobody Sun Feb 8 17:14:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1686740025; cv=none; d=zohomail.com; s=zohoarc; b=R8vqUOtCkvNQE9o4TsNc/DDwg80KvzgnTMGb8phbta5SwF8L7Emk9A3oTmaccmH4h4sCZ8q2F2QPU8FPnEyiU1/Jm0tNiSgx9yjK6N2e57YNY1/por7zuqsFBaqcCF2uJIWrX+NBBsCUtxSJNIAP7Nksh9AjhBMbkw/iHYYBtkU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686740025; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=kRZuN9GqBrO4bpdDw1xRbah3n1rtgCvmDYbKYQxGNpY=; b=MJ1TaE9TfZ5PCkmzMhh+X/7FyzJhICBSIx9aWg9VYHPKAEBu2y/FHrLjxRD4xuN/fTKtLvYDQWpoDc1jhVr7K3NPPmQ+rE67FkAi2XwrrkjeRFENI0dNvBg7FoJtmMkhHqyS7URwDbUNdU5N33yqsR6o9Uy0aLG68MRNmwqniX0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1686740025741450.70171208464546; Wed, 14 Jun 2023 03:53:45 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-569-F06xJ974O9-KsrFcoh-KaQ-1; Wed, 14 Jun 2023 06:53:40 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 075E38030D5; Wed, 14 Jun 2023 10:53:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E54E62026D49; Wed, 14 Jun 2023 10:53:37 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7B07F19452C2; Wed, 14 Jun 2023 10:53:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A5C04194658C for ; Wed, 14 Jun 2023 10:53:36 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 513F640C6F5C; Wed, 14 Jun 2023 10:53:36 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast08.extmail.prod.ext.rdu2.redhat.com [10.11.55.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4A03740C6F5E for ; Wed, 14 Jun 2023 10:53:36 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 275653804075 for ; Wed, 14 Jun 2023 10:53:36 +0000 (UTC) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-145-Z-YUdZfVPnCIN-proRfQGg-1; Wed, 14 Jun 2023 06:53:34 -0400 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-98273acfe25so37967266b.0 for ; Wed, 14 Jun 2023 03:53:34 -0700 (PDT) Received: from wheatley.localdomain ([213.175.39.66]) by smtp.gmail.com with ESMTPSA id w23-20020a1709064a1700b00978723f594bsm7776343eju.101.2023.06.14.03.53.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 03:53:33 -0700 (PDT) Received: from wheatley.. (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id C078211CC2F79 for ; Wed, 14 Jun 2023 12:53:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686740024; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kRZuN9GqBrO4bpdDw1xRbah3n1rtgCvmDYbKYQxGNpY=; b=gyaLXDpK5CVLfT2LFFd7JFhbMZfbKEv0NRt5Dw1byiHP3N+D/BoV8U3GqsnTB+LJTKTeqp egdpPSUu1WwWYVcLOZNv4FzGBYyD7RZQ15IzMskhIignPBpLhNRUqDdRnKGdaUr3r2PK8I hrWS9a8UH5YkjM1wdUcPzKi4qXC1e4s= X-MC-Unique: F06xJ974O9-KsrFcoh-KaQ-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: Z-YUdZfVPnCIN-proRfQGg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686740013; x=1689332013; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kRZuN9GqBrO4bpdDw1xRbah3n1rtgCvmDYbKYQxGNpY=; b=P0N/h2VDM40Az/x6a9tGk/WvO0Y5TFG2NjyVs+Ij+pa+zJRRESgKz8rW7wypdlxrpy wX0Uy+BQGStqIu0Kk95GpSwxhn5M5Hy9Ll3gHQTKrmLFctLlTM9Xpsvd6pJX9SvQStfQ mnAqHPMgb+LRDpTgNLoQUPyJesjCM0LW1HTHv1jVo1ur5Kj18N/6dLqgsOdVkJJazTbt znyd3a9x8jyz8q9Q1HC2vuKkhaYbdvcZ8PYm/XcYaDyEzQ+AelFCq2Ia57sh/kcEaGYm KsAy16Lpy8CJ1aAYCIfGy5cUhgru0Fecx0mghYk7C8Z+ddXnFwTwsgaSgfgdNg++KPpi FT8g== X-Gm-Message-State: AC+VfDxh5TAyJo34onvbKV5H4FOQAGaevVrsgcwMNQhWG5DyehNjupVj ZMrLDWSls5Hu3P8VEY8LCgQOsSRXBXAzv4aQvbpDG1cQh3qftz/omSw4tstmJJ26d8cGFM8xBLh vm+cpRHBRm0mwfXHYeHgquSc4IKnHyBOW8W152kjEuHjFiKVry0ZbTAWG8RhpLSo8hv+lJweKT/ ysGteZQg== X-Received: by 2002:a17:907:1c06:b0:969:f9e8:a77c with SMTP id nc6-20020a1709071c0600b00969f9e8a77cmr14158185ejc.64.1686740013740; Wed, 14 Jun 2023 03:53:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50YRFPoGFMFKIAghRHTVW0haIVTim6HWEC2UO9ecrbsXcsjYacBvSZlzeRjH/KsnMIqQjcxw== X-Received: by 2002:a17:907:1c06:b0:969:f9e8:a77c with SMTP id nc6-20020a1709071c0600b00969f9e8a77cmr14158169ejc.64.1686740013403; Wed, 14 Jun 2023 03:53:33 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH] conf/nwfilter: Initialize size_t attr to zero Date: Wed, 14 Jun 2023 12:53:01 +0200 Message-ID: <078e645cc3b19458eee4b89b4bfd8e0a32a8b424.1686739981.git.mkletzan@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686740026098100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Newer GCC (13.1.1 in my case) wrongly reports "maybe uninitialized" warning for this variable inside the next condition. Even though this accusation is wrong (the condition is guarded by the same condition as the for cycle initializing it), initialize it during the declaration so compilation errors don't stop others and maybe also future proof the code for changes. Signed-off-by: Martin Kletzander --- Pushed as a trivial kind-of build-break fix. src/conf/nwfilter_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/nwfilter_conf.c b/src/conf/nwfilter_conf.c index b79fd2561e7e..35f6efbbe267 100644 --- a/src/conf/nwfilter_conf.c +++ b/src/conf/nwfilter_conf.c @@ -2393,7 +2393,7 @@ virNWFilterRuleParse(xmlNodePtr node) =20 if (nattrNodes > 0) { size_t i; - size_t attr; + size_t attr =3D 0; =20 /* First we look up the type of the first valid element. The rest = of * the parsing then only considers elements with same name. */ --=20 2.41.0