mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
remote: close outfiles faster
Switch the operands in the loop condition to make it converge. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
8a1915c4d6
commit
2f282f300a
@ -5977,7 +5977,7 @@ remoteDomainQemuMonitorCommandWithFiles(virDomainPtr domain,
|
|||||||
|
|
||||||
done:
|
done:
|
||||||
if (rpc_outfiles) {
|
if (rpc_outfiles) {
|
||||||
for (i = 0; rpc_noutfiles < i; i++) {
|
for (i = 0; i < rpc_noutfiles; i++) {
|
||||||
VIR_FORCE_CLOSE(rpc_outfiles[i]);
|
VIR_FORCE_CLOSE(rpc_outfiles[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user