[PATCH 3/4] testQemuInfoSetArgs: Use curly braces in else section

Peter Krempa posted 4 patches 4 years, 11 months ago
[PATCH 3/4] testQemuInfoSetArgs: Use curly braces in else section
Posted by Peter Krempa 4 years, 11 months ago
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 tests/testutilsqemu.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
index c2cf3be9ac..a96c9d487a 100644
--- a/tests/testutilsqemu.c
+++ b/tests/testutilsqemu.c
@@ -779,8 +779,10 @@ testQemuInfoSetArgs(struct testQemuInfo *info,
         if (STREQ(capsver, "latest")) {
             capsfile = g_strdup(virHashLookup(capslatest, capsarch));
             stripmachinealiases = true;
-        } else capsfile = g_strdup_printf("%s/caps_%s.%s.xml",
-                                          TEST_QEMU_CAPS_PATH, capsver, capsarch);
+        } else {
+            capsfile = g_strdup_printf("%s/caps_%s.%s.xml",
+                                       TEST_QEMU_CAPS_PATH, capsver, capsarch);
+        }

         if (!(qemuCaps = qemuTestParseCapabilitiesArch(info->arch, capsfile)))
             goto cleanup;
-- 
2.29.2