From nobody Mon Apr 29 01:07:57 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=1556584224; cv=none; d=zoho.com; s=zohoarc; b=Tbkdo4mXgsGKJuLc65HUEvPPRPk4cPVX5BA1mP3fpqtn90fjTDMK41qN+zNr1Tmp333Crjk1rmSbJ5ZpuTDo67j4tHjyCfIYfZ2bCxHCQExqm7AJlmEkNj+WIEy4OejBJQiHUqDJVYrIlIz+dxMTR0yWdMILv7e5eu0Ucxjm2kU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556584224; 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=sxm+ZYNwNtfrNNrMcKJDlEE08fQBbhPh53yJWiQ3Irk=; b=cWkFeE6FnATnGp2Q3zBtfXtPPD7nJPMvbHkYVRshaZN3c8oS6FPhl845KQ9Gjbd4WDzahD0EY+nvK3jb/RnGGkw1N0Le9Bpp8aoowN/Wu22bhQAUdfJPP+QpZ2yI0sA3nev6xViobVHQay2u8BUfAXj0ifoI/a1Ck0fJM/p7x4c= 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 1556584224544782.2970003070305; Mon, 29 Apr 2019 17:30:24 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81DE1306E33B; Tue, 30 Apr 2019 00:30:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5E8A2891C; Tue, 30 Apr 2019 00:30: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 A3A7F41F3D; Tue, 30 Apr 2019 00:30:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3U0U8lh002899 for ; Mon, 29 Apr 2019 20:30:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id F176C6F93C; Tue, 30 Apr 2019 00:30:07 +0000 (UTC) Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EBCE56F7F5 for ; Tue, 30 Apr 2019 00:30:04 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (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 DB6DC3092666 for ; Tue, 30 Apr 2019 00:30:03 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id d14so3002497qkl.11 for ; Mon, 29 Apr 2019 17:30:03 -0700 (PDT) Received: from localhost.localdomain ([2804:431:b704:efe2:8c89:3d19:2b40:6c81]) by smtp.gmail.com with ESMTPSA id x7sm15151733qkc.22.2019.04.29.17.30.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 17:30:01 -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=BevvynoMVw/eZmXjhGkCsgbXZIZyo6McyCcr+9GsIiA=; b=OEO0cOUSqHGvM+e+iP38UUotMDUu6eHNZ0ZSWo98LK/InueYi0DyiWLNt+p25IF6p2 mT8ZtmYHkW2AqwzZCk9pzanI9EnA81THWRBufjoTYm1OtA7WrorHlqyvpndrILRzymTv GcHWpSfRSnglOw97EuWt07IrrS0xYGhTBXZiG/LGKTX6Cn33mznRjcVQIcT6HfVETwJD PLiqevQw3Msg5862LFIqQhHppTKe9M5iYmxrXw9fbLhWx9SHaty+ANDdzUNr0jTchHmx 82VT8UGwxY8xPqm9yRRAJr2w58vcMSPjHgbCk5w0m1o9kmSQ4iUuPu29lVlN5f2vTt8w 63DA== 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=BevvynoMVw/eZmXjhGkCsgbXZIZyo6McyCcr+9GsIiA=; b=pdYVKFoUGfKG70b47MuTnezOpkDaOOLakLM6JJv4eMrXWXaVjJ9QAKZ4wbm5cUw7M2 SoMyRxjFGQpHov9wSoAuk1cQIAVd6b2Px6a9lNOKHgvImjL2nBn/5weKdJWp6H7aURww cTwPidKLSHBvocej7mNP/uaIbpfay0CeOkC9EN5eeNkLw6BZGj/9JG4V4uDL3GUl/Okn qESy0ZpoLxdzJNDn9BubWYJv2Lnlw/TPAp6h1fqgYesWLzq9J0at51+ROKwZtp9dW9oo 7Ebh2RUHrzbXLm2fLPSfORp3iFd8D/UzKQVqUOZSxP79sSw7wwiht9BaAdFj1kHECwNp nx7g== X-Gm-Message-State: APjAAAWwp6bc+EuvGXxG++sceU7q4AinuDLir5md8JW5ClCuh9PeOk3j jB07L74ghV+Lb/ZTjoAOappirnUU X-Google-Smtp-Source: APXvYqzwmOcdq7ZY2fkyr07DIR238vfSq6o8oJKNX/oMwZYk+rKnkrZ5BSfff5Ck5rv4coDPHARGIg== X-Received: by 2002:a37:c402:: with SMTP id d2mr37175183qki.291.1556584202693; Mon, 29 Apr 2019 17:30:02 -0700 (PDT) From: Julio Faracco To: libvir-list@redhat.com Date: Mon, 29 Apr 2019 21:29:54 -0300 Message-Id: <20190430002954.14080-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.43]); Tue, 30 Apr 2019 00:30:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 30 Apr 2019 00:30:03 +0000 (UTC) for IP:'209.85.222.193' DOMAIN:'mail-qk1-f193.google.com' HELO:'mail-qk1-f193.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.111 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.222.193 mail-qk1-f193.google.com 209.85.222.193 mail-qk1-f193.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 30 Apr 2019 00:30:21 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This commit is similar with 692400f4. It fixes an uninitialized variable to avoid garbage value. This case, returns 0 jiffies if an error occurs with virNetDevBridgeGet. Signed-off-by: Julio Faracco --- src/util/virnetdevbridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c index 0f301d9216..4f21a82fb7 100644 --- a/src/util/virnetdevbridge.c +++ b/src/util/virnetdevbridge.c @@ -713,7 +713,7 @@ int virNetDevBridgeGetSTPDelay(const char *brname, int *delayms) { int ret =3D -1; - unsigned long val; + unsigned long val =3D 0; =20 ret =3D virNetDevBridgeGet(brname, "forward_delay", &val); *delayms =3D JIFFIES_TO_MS(val); --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list