From nobody Sun Feb 8 18:33:15 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=1652882494; cv=none; d=zohomail.com; s=zohoarc; b=KFRzMTY04A7B8cQ2amaaPbLJ5TiGamquiVx/0xA++wBtcLCjfv6l9pbkH1RLrcpyO9AL1jI+AyrR4qANPpa3V64W90rEY+baCWa1WWqnQ2zgtflR1XO6GS4lc172F8Nyx8b3J4IK/FLSNXXvsw0csHnB4qinhdI1MNQj+A377oE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652882494; 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=D1/X3gbeaWtDVJ7p8SwLuVHi5j/f4dvWtqEaRXn7Ly4=; b=ObIhDWG/BN+x6aV6yAxk8DQQvqi6YnAhBC7PgSWGirTcqW+XtzXnR+1U5l3cX4DNDypPAFtJ97qvVn4k71JpYcVomcpY1fIh/eW45nw+ScciB8XwwgiJXToqkhDZLKaPMX5ieDndZ6k/aR05RMw7uGBL8oN0/70rRYo3v/bwyyQ= 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 1652882494647681.4231223858429; Wed, 18 May 2022 07:01:34 -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-647-8GWVcT-jOXSm9RVmytG-uw-1; Wed, 18 May 2022 10:01:28 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5402881F46B; Wed, 18 May 2022 14:01:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CAA4C15D58; Wed, 18 May 2022 14:01:14 +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 8BDF41926218; Wed, 18 May 2022 14:01:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A37251947B90 for ; Wed, 18 May 2022 14:01:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 86DF7492CA6; Wed, 18 May 2022 14:01:04 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2EFD8492C3B for ; Wed, 18 May 2022 14:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652882493; 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=D1/X3gbeaWtDVJ7p8SwLuVHi5j/f4dvWtqEaRXn7Ly4=; b=jSaIe/DSkylbXzvmo07JVTd3kOwsSDuTMbH4WXXnbZXW8ZED/CdI0ZtYMYpsO+ze8FFnZ+ Dk7dWQ/pYgqhfM/f62wWknYxDu2GW++dST9We6r9TFv7EMFbaky6yLqPr9cdhn8LaXRSwj riZT1zdSVca8V5kSbpA4VmZ/CgWgVOc= X-MC-Unique: 8GWVcT-jOXSm9RVmytG-uw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 4/5] vbox: SnapshotConfAllChildren: reduce scope of tempSize Date: Wed, 18 May 2022 16:00:59 +0200 Message-Id: <6fa906a69b73743ea45d71d6823586b3bfa66660.1652882416.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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 2.85 on 10.11.54.8 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) X-ZM-MESSAGEID: 1652882495244100003 Signed-off-by: J=C3=A1n Tomko --- src/vbox/vbox_snapshot_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vbox/vbox_snapshot_conf.c b/src/vbox/vbox_snapshot_conf.c index 6b47893b5e..90afac179e 100644 --- a/src/vbox/vbox_snapshot_conf.c +++ b/src/vbox/vbox_snapshot_conf.c @@ -454,7 +454,6 @@ virVBoxSnapshotConfAllChildren(virVBoxSnapshotConfHardD= isk *disk, virVBoxSnapshotConfHardDisk ***list) { size_t returnSize =3D 0; - size_t tempSize =3D 0; virVBoxSnapshotConfHardDisk **ret =3D NULL; virVBoxSnapshotConfHardDisk **tempList =3D NULL; size_t i =3D 0; @@ -463,7 +462,7 @@ virVBoxSnapshotConfAllChildren(virVBoxSnapshotConfHardD= isk *disk, ret =3D g_new0(virVBoxSnapshotConfHardDisk *, 0); =20 for (i =3D 0; i < disk->nchildren; i++) { - tempSize =3D virVBoxSnapshotConfAllChildren(disk->children[i], &te= mpList); + size_t tempSize =3D virVBoxSnapshotConfAllChildren(disk->children[= i], &tempList); VIR_EXPAND_N(ret, returnSize, tempSize); =20 for (j =3D 0; j < tempSize; j++) --=20 2.34.1