From: Michal Privoznik Date: Tue, 2 Nov 2021 16:26:48 +0000 (+0100) Subject: virpcivpdtest: Declare variables at multiple lines X-Git-Tag: v7.10.0-rc1~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f607caba02f45316160029b4ba3f10d6f7799b8;p=thirdparty%2Flibvirt.git virpcivpdtest: Declare variables at multiple lines 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 Reviewed-by: Tim Wiederhake --- 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))