Re: [libvirt PATCH 29/38] virLockSpaceNewPostExecRestart: `virHashNew` cannot return NULL

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

 



On Thu, Jul 22, 2021 at 09:50:21 +0200, Tim Wiederhake wrote:
> Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
> ---
>  src/util/virlockspace.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/src/util/virlockspace.c b/src/util/virlockspace.c
> index edf2ec907f..0c4beaf9fe 100644
> --- a/src/util/virlockspace.c
> +++ b/src/util/virlockspace.c
> @@ -293,8 +293,7 @@ virLockSpace *virLockSpaceNewPostExecRestart(virJSONValue *object)
>          return NULL;
>      }
>  
> -    if (!(lockspace->resources = virHashNew(virLockSpaceResourceDataFree)))
> -        goto error;
> +    virHashNew(virLockSpaceResourceDataFree);

lockspace->resources = virHashNew(virLockSpaceResourceDataFree);




[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