]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add missing break to switch-case block
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 19 Nov 2013 16:29:28 +0000 (10:29 -0600)
committerDoug Goldstein <cardoe@cardoe.com>
Tue, 19 Nov 2013 16:29:28 +0000 (10:29 -0600)
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.

python/libvirt-override.c

index 2e58bf91bf11c65d32a9a69e690c460cb505841f..747c877d3504f2ace87b958f6d125077f281eb54 100644 (file)
@@ -6399,6 +6399,7 @@ libvirt_virConnectDomainEventRegisterAny(ATTRIBUTE_UNUSED PyObject * self,
         break;
     case VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED:
         cb = VIR_DOMAIN_EVENT_CALLBACK(libvirt_virConnectDomainEventDeviceRemovedCallback);
+        break;
 
     case VIR_DOMAIN_EVENT_ID_LAST:
         break;