[libvirt] [PATCH] tests: Fix parentheses order in an assignment-comparison conditional

Erik Skultety posted 1 patch 3 weeks ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/08ad83eee133d6bac27865d9321e399db7bbe29e.1559674862.git.eskultet@redhat.com
tests/testutilsqemu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

[libvirt] [PATCH] tests: Fix parentheses order in an assignment-comparison conditional

Posted by Erik Skultety 3 weeks ago
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1717090

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---

Pushed as trivial.

 tests/testutilsqemu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
index bce847ce5e..9ac9f9bd39 100644
--- a/tests/testutilsqemu.c
+++ b/tests/testutilsqemu.c
@@ -918,7 +918,7 @@ testQemuCapsIterate(const char *suffix,
     if (virDirOpen(&dir, TEST_QEMU_CAPS_PATH) < 0)
         goto cleanup;

-    while ((rc = virDirRead(dir, &ent, TEST_QEMU_CAPS_PATH) > 0)) {
+    while ((rc = virDirRead(dir, &ent, TEST_QEMU_CAPS_PATH)) > 0) {
         char *tmp = ent->d_name;
         char *base = NULL;
         char *archName = NULL;
--
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list