提交 7573ce35 编写于 作者: D Daniel P. Berrange

Remove bogus test code accidentally left in previous commit

上级 724d0df7
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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册