[libvirt PATCH 1/2] remote: close outfiles faster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Switch the operands in the loop condition to make it converge.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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]);
         }
     }
-- 
2.34.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux