Re: [PATCH] virt-aa-helper: fix bool initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 16, 2021 at 09:18:43 +0100, christian.ehrhardt@xxxxxxxxxxxxx wrote:
> From: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>
> 
> Since purged is a bool variable it should be initialized by false
> instead of 0.
> 
> Suggested-by: Sergio Durigan Junior <sergio.durigan@xxxxxxxxxxxxx>
> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>
> ---
>  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 = NULL;
>      char *include_file = NULL;
>      off_t size;
> -    bool purged = 0;
> +    bool purged = false;
>  
>      if (virGettextInitialize() < 0 ||
>          virErrorInitialize() < 0) {

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux