]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Fix parentheses order in an assignment-comparison conditional
authorErik Skultety <eskultet@redhat.com>
Tue, 4 Jun 2019 18:56:58 +0000 (20:56 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 4 Jun 2019 18:56:58 +0000 (20:56 +0200)
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1717090

Signed-off-by: Erik Skultety <eskultet@redhat.com>
tests/testutilsqemu.c

index bce847ce5e1cb71c3a007d6fcd616d4298a430df..9ac9f9bd39d5a8612cdf80667941ca73670fb085 100644 (file)
@@ -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;