Remove bogus test code accidentally left in previous commit

This commit is contained in:
Daniel P. Berrange 2008-04-29 13:48:41 +00:00
parent 724d0df7e5
commit 7573ce3591
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Tue Apr 29 09:46:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/hash.c: remove bogus test code accidentally added in
previous commit
Tue Apr 29 15:20:12 CEST 2008 Jim Meyering <meyering@redhat.com>
Avoid "make syntax-check" failures.

View File

@ -821,8 +821,7 @@ __virGetDomain(virConnectPtr conn, const char *name, const unsigned char *uuid)
ret = (virDomainPtr) virHashLookup(conn->domains, name);
/* TODO check the UUID */
if (ret == NULL) {
VIR_ALLOC(ret);
if (0) {
if (VIR_ALLOC(ret) < 0) {
virHashError(conn, VIR_ERR_NO_MEMORY, _("allocating domain"));
goto error;
}