Re: [libvirt] [PATCH] Don't do virSetConnError when virDrvSupportsFeature is successful.

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

 



On Mon, Sep 21, 2009 at 02:53:31PM +0200, Chris Lalancette wrote:
> Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
> ---
>  src/libvirt.c |    7 +++++--
>  1 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 4a11688..fa59dc7 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -1349,8 +1349,11 @@ virDrvSupportsFeature (virConnectPtr conn, int feature)
>      }
>  
>      ret = VIR_DRV_SUPPORTS_FEATURE (conn->driver, conn, feature);
> -    /* Copy to connection error object for back compatability */
> -    virSetConnError(conn);
> +
> +    if (ret < 0)
> +        /* Copy to connection error object for back compatability */
> +        virSetConnError(conn);
> +
>      return ret;
>  }
>  
> -- 

ACK


Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]