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

Re: [libvirt] [PATCH] dispatch error before return



On 01/25/2011 02:56 AM, Wen Congyang wrote:
> 
> Signed-off-by: Wen Congyang <wency cn fujitsu com>
> 
> ---
>  src/libvirt.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 5f8b131..c65b1e5 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -5560,6 +5560,7 @@ virDomainAttachDeviceFlags(virDomainPtr domain,
>  
>      if (!VIR_IS_CONNECTED_DOMAIN(domain)) {
>          virLibDomainError(VIR_ERR_INVALID_DOMAIN, __FUNCTION__);
> +        virDispatchError(NULL);
>          return -1;

ACK; applied.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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