mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
Remove bogus test code accidentally left in previous commit
This commit is contained in:
parent
724d0df7e5
commit
7573ce3591
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user