From nobody Thu May 9 00:14:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=canonical.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1637050752903263.2949433294606; Tue, 16 Nov 2021 00:19:12 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-399-rMeRKLwQN_2C-R9dCBmJ_A-1; Tue, 16 Nov 2021 03:19:07 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 242A41808318; Tue, 16 Nov 2021 08:19:02 +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 511305F4ED; Tue, 16 Nov 2021 08:19:00 +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 F41D64A703; Tue, 16 Nov 2021 08:18:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AG8IsWn005348 for ; Tue, 16 Nov 2021 03:18:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0FC49404727A; Tue, 16 Nov 2021 08:18:54 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0BCCB4047272 for ; Tue, 16 Nov 2021 08:18:54 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E5E43811E7A for ; Tue, 16 Nov 2021 08:18:53 +0000 (UTC) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-393-Ovl3ZDdFMI-8kyVvzUbVfA-1; Tue, 16 Nov 2021 03:18:51 -0500 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 6699C3F199 for ; Tue, 16 Nov 2021 08:18:50 +0000 (UTC) Received: by mail-qk1-f200.google.com with SMTP id bj10-20020a05620a190a00b004681da13edcso7985669qkb.1 for ; Tue, 16 Nov 2021 00:18:50 -0800 (PST) Received: from Keschdeichel.fritz.box ([2001:67c:1560:8007::aac:c4ad]) by smtp.gmail.com with ESMTPSA id e20sm6538812qty.14.2021.11.16.00.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 00:18:48 -0800 (PST) X-MC-Unique: rMeRKLwQN_2C-R9dCBmJ_A-1 X-MC-Unique: Ovl3ZDdFMI-8kyVvzUbVfA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wZqtJPsivCeO3yhcZi+RfZ1eHMJTKFGf0XqhmdK+Uag=; b=VkKaUgREQBVYbJ6wdT98S5qzQJzFjEOnORykRpuwry3e3uSJFUuHwmw79trs5ObDUW ro5xxaRh+Ql6yUgoI9kH1dCBcEqYJFgXVweSX++a7JIsxMcugvBjnUa5Z2u+XiQH6s/p 6nDL7QlkUgh66tpXXzwAy1edOLVFo6zD9z3bMzck9/lWHxEJdIw4/qgjz4lYxd3UVOY4 NfhsvMXD25CIYdMZeT7PdV5AfH+f9gWp0b7KJYVdKpcPzQjpJk64PdsVEzeH/YcXl2LT FNqofMMdCGKXeYBr1l4IiKoRFlwtkNOJJOenGOgL2NUa3ASTaT8Zc+OeIq3PGz0Dehl9 zN5A== X-Gm-Message-State: AOAM530TLsG4sxSwMsV/Cxqqd2GZ8Pe15QeZoxrQXiAjmRd5z4tXURqc xtUIKZgEQoJEKDKpmHpYmQWn4PjHB7yjP4ebufLYGcqEglLVaMThff2gz2OzQhZ2OT++1qxtxm7 9BVwLWReCv0buNcIiWkPkKYT81JBMIrPkmw== X-Received: by 2002:a37:a90a:: with SMTP id s10mr4466340qke.124.1637050729289; Tue, 16 Nov 2021 00:18:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbHGQn3b+AmWDebVzOUWsQc1pJx0Y9QkpPu++wFinRD1pdv+zaqdGAeYv1u606paZpnTEX6Q== X-Received: by 2002:a37:a90a:: with SMTP id s10mr4466322qke.124.1637050729037; Tue, 16 Nov 2021 00:18:49 -0800 (PST) From: christian.ehrhardt@canonical.com To: libvir-list@redhat.com Subject: [PATCH] virt-aa-helper: fix bool initialization Date: Tue, 16 Nov 2021 09:18:43 +0100 Message-Id: <20211116081843.1064412-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 1AG8IsWn005348 X-loop: libvir-list@redhat.com Cc: Sergio Durigan Junior , Christian Ehrhardt , Ioanna Alifieraki 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1637050942765100001 Content-Type: text/plain; charset="utf-8" From: Christian Ehrhardt Since purged is a bool variable it should be initialized by false instead of 0. Suggested-by: Sergio Durigan Junior Signed-off-by: Christian Ehrhardt Reviewed-by: Jiri Denemark --- src/security/virt-aa-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 218e07bfb0..898f9f1a16 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1438,7 +1438,7 @@ main(int argc, char **argv) char *profile =3D NULL; char *include_file =3D NULL; off_t size; - bool purged =3D 0; + bool purged =3D false; =20 if (virGettextInitialize() < 0 || virErrorInitialize() < 0) { --=20 2.33.1