From nobody Fri May 3 17:51:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1562245771; cv=none; d=zoho.com; s=zohoarc; b=H7Ko2cKJG8m2CuFBC6NPd9vLN6GPuAOfruOBND7aBe4EbUTXvP9/7Lh6BiviP3VIvR2ab1xJruA0UIhMfy4bUWcsbV51Wi2OdAi+8XF6PufFscaBWYRyv9arKUAfhePvLNk6ZY2zj/5M/UbV1hUw5wpOCpvMkpGB1mkgDuBWrWM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562245771; 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:ARC-Authentication-Results; bh=RlUApTI/Ibv9JBJLTJip3aI4oby8PoofTQIpDTf5ysM=; b=OdRfJnF9a8JkmB0NVj2RJB/SM97NYw56+oLyMsPYmuYQiPjPEWfpwVHRLTGIf7LP0aGcqblP/a3MQUFhMu9ya1r9+40zWyf60HkyKgAd6+sPDdmqDVRXDsXWms81/e2vTWp7b8jmixlboHE/RCLojLwkZscKc5XlWbpTw954GL8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1562245771000136.4708386722075; Thu, 4 Jul 2019 06:09:31 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 91BD48830B; Thu, 4 Jul 2019 13:09:04 +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 80D117D513; Thu, 4 Jul 2019 13:08:55 +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 3565C18433A1; Thu, 4 Jul 2019 13:08:42 +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 x64D8epw023610 for ; Thu, 4 Jul 2019 09:08:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 94E547FD2B; Thu, 4 Jul 2019 13:08:40 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F2067AB4B for ; Thu, 4 Jul 2019 13:08:37 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7FBA830833BF for ; Thu, 4 Jul 2019 13:08:21 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id z23so6101037wma.4 for ; Thu, 04 Jul 2019 06:08:21 -0700 (PDT) Received: from archpc.localdomain (x8d1ee222.agdsn.tu-dresden.de. [141.30.226.34]) by smtp.gmail.com with ESMTPSA id r2sm6800939wme.30.2019.07.04.06.08.18 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 04 Jul 2019 06:08:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DWvpqYfV+E1RlVlrHX0VJu8ykS4IPINelWDcIpZgZlY=; b=vHZl3w7IrAlUva30ifBfTOQePmrCFFHCD/Djf/RQgbFWQBlq+4D0TK4FoyG0KdgjWi oIB/D1kGqlLvOTHLuW8Zwq+iELrNyw2/G7N1XQe26nRdP0ovSOHhQnU1S+edRjOP3YqC hNb5olKiX8FAHr91X3nYy+KBTIP/xHLzndQJflJoZFG4AiM7Y7d1yNtSULzoRtLDkooW dincvmirkLEckCkWhIj6eRtaYiRORsQs5UnmdVShIktFITDSEI0FQVEitkWWNWxuCbN/ a6kQ/OI+ReLSuHnsdbD6KPf+Q0YnETTgYKdD/jHJnv1CDbHLDuglnKKEPtZIXXHrz2x4 EPrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DWvpqYfV+E1RlVlrHX0VJu8ykS4IPINelWDcIpZgZlY=; b=NgSz9wSIWMNEP53XmI4RM79h/Dt75HObF14wzO/rMGasfx8gYTClf6ysYsUdIuU72E AoNvrvYrBbprxOuvD4DySWRnDQ0LJHgyiIbHZ1D4zbAAIz5PLVjYNHUB6ZvD+UJ8RC1Y TIGfjT3O9mp6ekMgQYzqz5YpjUik9n9BU4G2DSyZe7axn5/fr7lQCsOud/h3jsFa7hgg +/VMqQKNQ30jAmW5EsQm6/0sN9a3LVbkaSN/l5pzbb8qPwLCElso8ymVDGKws6BcUzPd lKJB2iIWFFMZXCBceynbZ1Bz7d3AYOyj6SO9VLavHSNYqqJMBBUTyp/deznRl+bFNQYA R+xA== X-Gm-Message-State: APjAAAVIuUMmvt0tf3rWq4dBjhYrdQ2UWebrlJixEm8V1+aYpOddOjDa B7UmSu1mJKAIZW+Nxr/AVBwDiCt/Bc9j1g== X-Google-Smtp-Source: APXvYqyjDX6chR1X/zTFs6pfObL6plTcjkqFTxQHNlwyjmlkVTkUSJEi7z4jgctEo6E7lTFO87KTZA== X-Received: by 2002:a1c:1a87:: with SMTP id a129mr3890765wma.21.1562245699689; Thu, 04 Jul 2019 06:08:19 -0700 (PDT) From: Ilias Stamatis To: libvir-list@redhat.com Date: Thu, 4 Jul 2019 15:08:12 +0200 Message-Id: <20190704130812.29866-1-stamatis.iliass@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 04 Jul 2019 13:08:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Thu, 04 Jul 2019 13:08:21 +0000 (UTC) for IP:'209.85.128.66' DOMAIN:'mail-wm1-f66.google.com' HELO:'mail-wm1-f66.google.com' FROM:'stamatis.iliass@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.089 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, T_PDS_NO_HELO_DNS) 209.85.128.66 mail-wm1-f66.google.com 209.85.128.66 mail-wm1-f66.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] test_driver: avoid using nerrors unitialized in testDomainGetDiskErrors 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 04 Jul 2019 13:09:28 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Right now nerrors can be used unitialized in the last for loop causing a bug. Signed-off-by: Ilias Stamatis --- src/test/test_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index ce4ff1a582..2371581f51 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -3275,7 +3275,7 @@ static int testDomainGetDiskErrors(virDomainPtr dom, virDomainObjPtr vm =3D NULL; int ret =3D -1; size_t i; - size_t nerrors; + size_t nerrors =3D 0; virCheckFlags(0, -1); -- 2.22.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list