]> xenbits.xensource.com Git - libvirt.git/commitdiff
Remove bogus test code accidentally left in previous commit
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Apr 2008 13:48:41 +0000 (13:48 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Apr 2008 13:48:41 +0000 (13:48 +0000)
ChangeLog
src/hash.c

index c096a56ca826d84faa28f291cca2bceb76d66711..808c5a2b14604edb82b2ca5c63f13a29d746d1c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 4c11456f00fab76f9198e0db8199777acb431b09..d8e0944390b85d9f3be406c15fc610f670270d2c 100644 (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;
         }