From nobody Sat May 4 06:26:05 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; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1555486465; cv=none; d=zoho.com; s=zohoarc; b=OJtr2izMfHBgA37Nbl/zUwDsZb8pGFEyGiLZE8CnH3mH+loIvJPsLUMZBQ2UWUn5z3IEEThUEHVKcme6L9Q9c9OpW5EsrQWsJqbU25RftS+a4SPAwmkIhe5mZ7OLEqZOGZYWPzzfSJRMGG9GoS4dKlfxve+TrTjqXac4JtKiyOU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555486465; 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=ptEefR6ZYPbtQ1vNZwSnb/Czm56dc+0pV5V+/zBlnAw=; b=ZhTb4XE6dTJEpcfGnKum2a7rZYZp+8XQrYDKrZ80YwAwdOhSkfx3EJBJOxOIIp3ZCJ36mfOdpfJB5+AHl3SZUs3WwaRVXyHUQ1NPMt5+iMaMYNjKBmYTAcv2EpeWuEzkCp6DSGaELSv03msZIrqlDtHUhdy1mP1cLpx/+7g6r8c= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass 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 1555486465262891.6561560120539; Wed, 17 Apr 2019 00:34:25 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A33CFC049D7C; Wed, 17 Apr 2019 07:34:23 +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 734B55D707; Wed, 17 Apr 2019 07:34:23 +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 349DA3FA48; Wed, 17 Apr 2019 07:34:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3H7YMV5017598 for ; Wed, 17 Apr 2019 03:34:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2BF0E5D707; Wed, 17 Apr 2019 07:34:22 +0000 (UTC) Received: from kinshicho.redhat.com (ovpn-204-19.brq.redhat.com [10.40.204.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 484095D71B for ; Wed, 17 Apr 2019 07:34:18 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Wed, 17 Apr 2019 09:34:16 +0200 Message-Id: <20190417073416.21070-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] qemu: Fix uninitialized variable 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 17 Apr 2019 07:34:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" It has made Clang very unhappy ever since 6bf7c6769925. Signed-off-by: Andrea Bolognani --- Pushed under the build breaker rule. src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index aac50475ee..0fb90c4049 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -7411,7 +7411,7 @@ static char *qemuConnectDomainXMLToNative(virConnectP= tr conn, for (i =3D 0; i < vm->def->nnets; i++) { virDomainNetDefPtr net =3D vm->def->nets[i]; unsigned int bootIndex =3D net->info.bootIndex; - char *model; + char *model =3D NULL; virMacAddr mac =3D net->mac; char *script =3D net->script; =20 --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list