]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virpcivpdtest: Declare variables at multiple lines
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Nov 2021 16:26:48 +0000 (17:26 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Nov 2021 13:46:54 +0000 (14:46 +0100)
In testPCIVPDResourceCustomCompareIndex() there are two variables
declared at one line. They are both g_autoptr() decorated which
makes it worse, because coccinelle fails to parse that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
tests/virpcivpdtest.c

index a9405f94276841b2a086e0bfb7379cea6c4b2da2..add1c74c046158c8766db7f0c845a8853c58bc7e 100644 (file)
@@ -178,7 +178,8 @@ testPCIVPDResourceBasic(const void *data G_GNUC_UNUSED)
 static int
 testPCIVPDResourceCustomCompareIndex(const void *data G_GNUC_UNUSED)
 {
-    g_autoptr(virPCIVPDResourceCustom) a = NULL, b = NULL;
+    g_autoptr(virPCIVPDResourceCustom) a = NULL;
+    g_autoptr(virPCIVPDResourceCustom) b = NULL;
 
     /* Both are NULL */
     if (!virPCIVPDResourceCustomCompareIndex(a, b))