[PATCH 3/5] virpcivpdtest: Declare variables at multiple lines

Michal Privoznik posted 5 patches 4 years, 3 months ago
There is a newer version of this series
[PATCH 3/5] virpcivpdtest: Declare variables at multiple lines
Posted by Michal Privoznik 4 years, 3 months ago
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>
---
 tests/virpcivpdtest.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/virpcivpdtest.c b/tests/virpcivpdtest.c
index a9405f9427..add1c74c04 100644
--- a/tests/virpcivpdtest.c
+++ b/tests/virpcivpdtest.c
@@ -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))
-- 
2.32.0