From nobody Thu May 2 14:28:47 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=1563421517; cv=none; d=zoho.com; s=zohoarc; b=mRfTn7uNshfOmz4Oh3tunuerGmzkDrD2bmB3xXVPzfxSbI1Tu0j+sq9TZREgHWyqc/KJmzUNzOSv4CifxWTNg9f/xOS59T4Nn5EQrUrJIymMrSwh9HuTDwyXz69MtDHVCidKfdXbViwAxNp/TvteFGr1ijeOI/oTqRSxuXwpiro= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1563421517; 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=b2P0dOdbgq2KXggaPMc58qLYM2GRV16dY78x3RXl65Q=; b=S4k5H/KSXQVvaXmH3jejAvGaRDLn57TOJbS8B51vJ2851DkqNEhGPb7kyCn/EByJ2iFYBkP0UGNDP14seTOnLG4AX2NIWA6n4ZR6kF0Z7d7j4Vtc35rP6UDxA6pNnn9sFU5eqitB6kAOabmZq7cjaAbQgNpWQSLtwNenoW4gzLg= 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 1563421517142312.93096025581724; Wed, 17 Jul 2019 20:45:17 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7977C59440; Thu, 18 Jul 2019 03:45: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 D2ED7608A6; Thu, 18 Jul 2019 03:45:13 +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 488BA18045CE; Thu, 18 Jul 2019 03:45:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x6I3jBG3032429 for ; Wed, 17 Jul 2019 23:45:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id 09EF660C6D; Thu, 18 Jul 2019 03:45:11 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 03D6360C5F for ; Thu, 18 Jul 2019 03:45:08 +0000 (UTC) Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) (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 8836DC057EC0 for ; Thu, 18 Jul 2019 03:45:07 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id d17so25661290qtj.8 for ; Wed, 17 Jul 2019 20:45:07 -0700 (PDT) Received: from localhost.localdomain ([152.250.140.21]) by smtp.gmail.com with ESMTPSA id z12sm11136503qkf.20.2019.07.17.20.45.05 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 20:45:05 -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=QRYsL824I306Up0PsiGiG5GMrAWdZKlV9eCRrquPk5g=; b=mXxP4pRMQzp40tBe4Fd/8wCPlauw5XfaTJnHPZ0YYz3gvRI8lgUr6i6lVaWtF4mnJR qoDad2OALi0WmrV8kzVwjX84h4pc5BHWLx7MoTEwllN4BCY4O++RqTCgDnSokMwMA9wf zZcnem0xibHZV4JKQRWDQRjQ/STBb/P3eAWlJOGZYKoCHXmM2oR50xg5C/6Cy7sUhnQz He/cDQ5wTnul5p+JFPBgFAw1VTEPQqXCRVN2cM3jQsu6w7FIXOgujSlRWC5WmeVruuBZ nBESYmhMSIMtffabTBY6koAwT1HV55txvXLOmlnSFtwJwGy7iRz1LO5CEi5gxxHs2kNy ucCw== 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=QRYsL824I306Up0PsiGiG5GMrAWdZKlV9eCRrquPk5g=; b=Bvcs05gcQXq93O4Q6nDFqFs1QbxyZhQ5oI6ZH06UBC4/aTVLCQjbwp1g6DMxoCimD3 JjYDPZAIwI37gNA7wQc5LBOhXnGfZH0wjNrRloh8tMP5Z4jGP3e6oNL3zrQffq3sH/PZ tjA5vtUxq9h0lfbpF68d8iU1Zq7cgmef1pnoooVpbOnccoPXyIQCESDF9LT0AECcSMdZ eGPCrfxMy0uPh+l0n3RGS48oTndhjlXzm3EAbZ5I+H888I0DmGcBAC2CrOXK1oHh/saP mpRxf54pp+8p6vhTspQt/RaOf498jN/itXW8e9Okwshl1R4YkZfhIVbRlNhVO3/acPxD 7Ypw== X-Gm-Message-State: APjAAAWbELVhh/K6VAbc+opRx6MU2kce2yIfcs1ksO4v2j2CCx4iWr1L jjLewhcJci1gJ2VUEYd6p+ZKiIyN X-Google-Smtp-Source: APXvYqwRNakUxjQxauONdmxcLWH8U8wLInvuqE2dYiV96VEyCarS9taWRRSlcsKDA99VdSWuOBXu1A== X-Received: by 2002:aed:3c44:: with SMTP id u4mr29997108qte.73.1563421506408; Wed, 17 Jul 2019 20:45:06 -0700 (PDT) From: Julio Faracco To: libvir-list@redhat.com Date: Thu, 18 Jul 2019 00:44:56 -0300 Message-Id: <20190718034456.15740-1-jcfaracco@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.32]); Thu, 18 Jul 2019 03:45:07 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 18 Jul 2019 03:45:07 +0000 (UTC) for IP:'209.85.160.194' DOMAIN:'mail-qt1-f194.google.com' HELO:'mail-qt1-f194.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.097 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS) 209.85.160.194 mail-qt1-f194.google.com 209.85.160.194 mail-qt1-f194.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] util: Fix uninitalized variable to avoid garbage value. 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 18 Jul 2019 03:45:15 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This commit is similar with 596aa144. It fixes an uninitialized variable to avoid garbage value. This case, it uses time 't' 0 if an error occurs with virTimeMillisNowRaw. Signed-off-by: Julio Faracco --- src/util/virtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virtime.c b/src/util/virtime.c index d1187726ee..86993e4e8d 100644 --- a/src/util/virtime.c +++ b/src/util/virtime.c @@ -422,7 +422,7 @@ virTimeBackOffStart(virTimeBackOffVar *var, bool virTimeBackOffWait(virTimeBackOffVar *var) { - unsigned long long t, next; + unsigned long long next, t =3D 0; =20 ignore_value(virTimeMillisNowRaw(&t)); =20 --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list