]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virpcitest: Fix variable arguments using in pci_driver_new
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Nov 2013 15:37:38 +0000 (16:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Nov 2013 16:00:13 +0000 (17:00 +0100)
commit361f2fa82027e31555617f3eccb409c3bee1fa21
treeafa5497bbcb0d2049341e29b352851293588eb48
parent0705933b89b8cc69d944ef75e815da6305564ddf
virpcitest: Fix variable arguments using in pci_driver_new

In the pci_driver_new function it is possible to set a list of
<vendor:device> IDs that the driver knows. These IDs are passed as
variable arguments and are processed  the usual way using va_start() and
va_arg(). However, after all arguments has been processed, we should
call va_end() what we aren't currently doing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/virpcimock.c