On 01/25/2011 02:56 AM, Wen Congyang wrote:
Signed-off-by: Wen Congyang <wency(a)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(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org