mirror of https://gitee.com/openkylin/libvirt.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 <mprivozn@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
ad8ba5b199
commit
4f607caba0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue