virConnectGetLibVersion: Avoid error message on success.

* src/libvirt.c (virConnectGetLibVersion): Don't emit error on
success.
This commit is contained in:
Paolo Smiraglia 2010-03-30 15:47:16 -06:00 committed by Eric Blake
parent 890af4ca8f
commit 0327ed8718
1 changed files with 3 additions and 2 deletions

View File

@ -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;