From nobody Sun Feb 8 10:04:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1601967563; cv=none; d=zohomail.com; s=zohoarc; b=cQBuWEv91t0HK3X2pYL1whiOg8JdVzPdvCFcIJvV0Q3UQp62hDjFZQr2TVktKCmmRV2ZSkUoHl7bjey0QHd/GbB0RTCE7tW7xfuwOWZPlgYUTGTjzBCTLN6o5wvjwSWbZenaTV59Vb88aV6waLmdnqYwBnXcB0ARjE9cI5srLOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1601967563; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fwnmcvtkx54KGnzvDob+QRH3fRtBkM+hkz5TkrZvvZY=; b=PeAPUG7buGSS5Ew8I5npfWBcya3scyFOQW3fbOm7EpSK7plblRnuYJeS2Snxqce7A+kusqkGzb5+mZPsFvV2RJhYgz5if8ZLvSs/Om0CiHkexueh9JOnb2g5zKITBEzGZiNHP5WlZwbHoWQMjdPQU/f/ewJ3dWYNb2y9tbDAB5A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 16019675634461008.2228357626245; Mon, 5 Oct 2020 23:59:23 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-480-f6InH8aSNki91sB5Vr4sCg-1; Tue, 06 Oct 2020 02:59:19 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7844B10866A9; Tue, 6 Oct 2020 06:59:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 56DBD60BFA; Tue, 6 Oct 2020 06:59:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1FE88181A07E; Tue, 6 Oct 2020 06:59:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0966wx1O018598 for ; Tue, 6 Oct 2020 02:58:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8777D5C1C4; Tue, 6 Oct 2020 06:58:59 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0F7E75C1BD for ; Tue, 6 Oct 2020 06:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601967562; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=fwnmcvtkx54KGnzvDob+QRH3fRtBkM+hkz5TkrZvvZY=; b=iTwUz5VEgBwsWvXhY9WmSEgwWhskO8sk/or4hgXUu5B8Bn2ER9UUT6VaYjvARa7x4Efopi tSNKCASKOoPTf3CcUOUO3Zy4Xtg7BlROAfWftDI8/hMms+ES1qjiVBkg8YlEEDHwxAZoSC aJvIE8daahc5qh0qVFbLsVd0ZWTFmL8= X-MC-Unique: f6InH8aSNki91sB5Vr4sCg-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 04/14] qemu: agent: reduce scope of addrs_count Date: Tue, 6 Oct 2020 08:58:40 +0200 Message-Id: <8029a2c6d2f2c519462c70bdf737e5d7447ffa7c.1601967442.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 51c597f57e..c6878c8590 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -2125,7 +2125,6 @@ qemuAgentGetInterfaces(qemuAgentPtr agent, virJSONValuePtr reply =3D NULL; virJSONValuePtr ret_array =3D NULL; size_t ifaces_count =3D 0; - size_t addrs_count =3D 0; virDomainInterfacePtr *ifaces_ret =3D NULL; virHashTablePtr ifaces_store =3D NULL; char **ifname =3D NULL; @@ -2159,6 +2158,7 @@ qemuAgentGetInterfaces(qemuAgentPtr agent, virJSONValuePtr ip_addr_arr =3D NULL; const char *hwaddr, *ifname_s, *name =3D NULL; virDomainInterfacePtr iface =3D NULL; + size_t addrs_count =3D 0; =20 /* interface name is required to be presented */ name =3D virJSONValueObjectGetString(tmp_iface, "name"); --=20 2.26.2