mirror of https://gitee.com/openkylin/libvirt.git
openvz: fix a simple bug in openvzListDefinedDomains()
This patch adds missing curly brackets to an if statement in openvzListDefinedDomains()
This commit is contained in:
parent
0d9e81f303
commit
9db5679b02
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue