From: Daniel P. Berrange Date: Tue, 29 Apr 2008 13:48:41 +0000 (+0000) Subject: Remove bogus test code accidentally left in previous commit X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7573ce359175b4176c7a7aba78498eb40fd73594;p=libvirt.git Remove bogus test code accidentally left in previous commit --- diff --git a/ChangeLog b/ChangeLog index c096a56ca8..808c5a2b14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 29 09:46:00 EST 2008 Daniel P. Berrange + + * src/hash.c: remove bogus test code accidentally added in + previous commit + Tue Apr 29 15:20:12 CEST 2008 Jim Meyering Avoid "make syntax-check" failures. diff --git a/src/hash.c b/src/hash.c index 4c11456f00..d8e0944390 100644 --- a/src/hash.c +++ b/src/hash.c @@ -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; }