From 2f282f300ad1f4ba60b09aebe073bffd913953ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 3 Mar 2022 14:01:16 +0100 Subject: [PATCH] remote: close outfiles faster MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch the operands in the loop condition to make it converge. Signed-off-by: Ján Tomko Reviewed-by: Peter Krempa --- src/remote/remote_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); } }