]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testQemuInfoSetArgs: Use curly braces in else section
authorPeter Krempa <pkrempa@redhat.com>
Fri, 19 Feb 2021 15:31:42 +0000 (16:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 20 Feb 2021 12:27:44 +0000 (13:27 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
tests/testutilsqemu.c

index c2cf3be9ac856945dd37837c6364d96b993753b8..a96c9d487a78e83fceab71d5cf5f5298cc99d82e 100644 (file)
@@ -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;