]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
openvz: fix a simple bug in openvzListDefinedDomains()
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Fri, 18 Mar 2011 14:59:26 +0000 (15:59 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 18 Mar 2011 17:05:34 +0000 (11:05 -0600)
This patch adds missing curly brackets to an if
statement in openvzListDefinedDomains()

src/openvz/openvz_driver.c

index 0d64e1910ed0be9aeabd20a7fd369d3cc222d32f..77921361f9ad9de821508d11b9e8f2078b9927f8 100644 (file)
@@ -1444,9 +1444,10 @@ static int openvzListDefinedDomains(virConnectPtr conn ATTRIBUTE_UNUSED,
             continue;
         }
         snprintf(vpsname, sizeof(vpsname), "%d", veid);
-        if (!(names[got] = strdup(vpsname)))
+        if (!(names[got] = strdup(vpsname))) {
             virReportOOMError();
             goto out;
+        }
         got ++;
     }
     waitpid(pid, NULL, 0);