openvz: fix a simple bug in openvzListDefinedDomains()

This patch adds missing curly brackets to an if
statement in openvzListDefinedDomains()
This commit is contained in:
Jean-Baptiste Rouault 2011-03-18 15:59:26 +01:00 committed by Eric Blake
parent 0d9e81f303
commit 9db5679b02

View File

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