fix two "make syntax check" failures

* src/xenapi/xenapi_driver.c (xenapiOpen): Remove useless-if-before-free.
* po/POTFILES.in: Add src/xenapi/xenapi_utils.c.
This commit is contained in:
Jim Meyering 2010-03-16 19:32:05 +01:00
parent db481dca94
commit a31bc67503
2 changed files with 2 additions and 1 deletions

View File

@ -78,5 +78,6 @@ src/xen/xen_hypervisor.c
src/xen/xen_inotify.c src/xen/xen_inotify.c
src/xen/xm_internal.c src/xen/xm_internal.c
src/xen/xs_internal.c src/xen/xs_internal.c
src/xenapi/xenapi_utils.c
tools/console.c tools/console.c
tools/virsh.c tools/virsh.c

View File

@ -102,7 +102,7 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS
} }
if (!passwd || !conn->uri->user) { if (!passwd || !conn->uri->user) {
xenapiSessionErrorHandler(conn, VIR_ERR_AUTH_FAILED, "Username/Password not valid"); xenapiSessionErrorHandler(conn, VIR_ERR_AUTH_FAILED, "Username/Password not valid");
if (passwd) VIR_FREE(passwd); VIR_FREE(passwd);
return VIR_DRV_OPEN_ERROR; return VIR_DRV_OPEN_ERROR;
} }
if (VIR_ALLOC(privP) < 0) { if (VIR_ALLOC(privP) < 0) {