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

Avoid compile warnings about assignment/conditional/truthvalue

上级 220bcb05
Wed Apr 22 15:28:03 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* src/network_driver.c: Explicit check for NULL, to avoid
compiler complaining about "assignment treated as truth value
in conditional".
Wed Apr 22 15:27:03 BST 2009 Daniel P. Berrange <berrange@redhat.com>
Use private /dev/pts instance for containers (needs 'newinstance'
......
......@@ -748,7 +748,7 @@ virNetworkObjPtr virNetworkLoadConfig(virConnectPtr conn,
/* Generate a bridge if none is found, but don't check for collisions
* if a bridge is hardcoded, so the network is at least defined
*/
if (tmp = virNetworkAllocateBridge(conn, nets, def->bridge)) {
if ((tmp = virNetworkAllocateBridge(conn, nets, def->bridge)) != NULL) {
VIR_FREE(def->bridge);
def->bridge = tmp;
} else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册