From: Ján Tomko Date: Thu, 3 Mar 2022 13:01:16 +0000 (+0100) Subject: remote: close outfiles faster X-Git-Tag: v8.2.0-rc1~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f282f300ad1f4ba60b09aebe073bffd913953ba;p=thirdparty%2Flibvirt.git remote: close outfiles faster Switch the operands in the loop condition to make it converge. Signed-off-by: Ján Tomko Reviewed-by: Peter Krempa --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index d6295f32e9..7e7a21fcab 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -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]); } }