+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'
/* 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