File openhpi-3.4.0_undefined_behavior.patch of Package openhpi

Index: plugins/snmp_bc/snmp_bc_utils.c
===================================================================
--- plugins/snmp_bc/snmp_bc_utils.c.orig	2007-10-04 00:40:10.000000000 +0200
+++ plugins/snmp_bc/snmp_bc_utils.c	2014-07-21 17:36:43.971386421 +0200
@@ -314,7 +314,6 @@ SaErrorT snmp_bc_set_resource_add_oh_eve
 	if (e->resource.ResourceCapabilities & SAHPI_CAPABILITY_FRU) {
 		e->event.EventType = SAHPI_ET_HOTSWAP;
 		e->event.EventDataUnion.HotSwapEvent.HotSwapState = 
-			e->event.EventDataUnion.HotSwapEvent.HotSwapState = 
 						res_info_ptr->cur_state;
 		
 	} else {
openSUSE Build Service is sponsored by