From 0327ed8718830f59014e234cdd1fe32cac31e9b0 Mon Sep 17 00:00:00 2001 From: Paolo Smiraglia Date: Tue, 30 Mar 2010 15:47:16 -0600 Subject: [PATCH] virConnectGetLibVersion: Avoid error message on success. * src/libvirt.c (virConnectGetLibVersion): Don't emit error on success. --- src/libvirt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index cc5b4c5e93..138dd31fe1 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -1660,8 +1660,9 @@ virConnectGetLibVersion(virConnectPtr conn, unsigned long *libVer) return ret; } - *libVer = LIBVIR_VERSION_NUMBER; - ret = 0; + *libVer = LIBVIR_VERSION_NUMBER; + return 0; + error: virDispatchError(conn); return ret;