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:
Ján Tomko 2022-03-03 14:01:16 +01:00
parent 8a1915c4d6
commit 2f282f300a

View File

@ -5977,7 +5977,7 @@ remoteDomainQemuMonitorCommandWithFiles(virDomainPtr domain,
done:
if (rpc_outfiles) {
for (i = 0; rpc_noutfiles < i; i++) {
for (i = 0; i < rpc_noutfiles; i++) {
VIR_FORCE_CLOSE(rpc_outfiles[i]);
}
}