mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 04:55:18 +00:00
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…
x
Reference in New Issue
Block a user