[libvirt-python 17/18] Add missing break to switch-case block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The case label for VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED did not have its
own break statement but relied on falling through which we probably
don't want.
---
 libvirt-override.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libvirt-override.c b/libvirt-override.c
index c3ff1e0..03f6253 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -6409,6 +6409,7 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject * self,
 #if LIBVIR_CHECK_VERSION(1,1,1)
     case VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED:
         cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback);
+		break;
 #endif /* LIBVIR_CHECK_VERSION(1,1,1) */
 
     case VIR_DOMAIN_EVENT_ID_LAST:
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]