From 011bb9711cbe99c72b22446c96d5e7b9659a88ee Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 4 Aug 2017 14:51:50 +0900 Subject: [PATCH] e bindings - fix warning about uninitialized val was not an actual bug, but compiler doesn't know better and we have enough noise in warnings... --- src/bin/e_bindings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_bindings.c b/src/bin/e_bindings.c index 79b0fdfe9..00b1f2f49 100644 --- a/src/bin/e_bindings.c +++ b/src/bin/e_bindings.c @@ -1336,10 +1336,10 @@ E_API E_Action * e_bindings_acpi_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev) { E_Action *act; - E_Binding_Acpi *binding; + E_Binding_Acpi *binding = NULL; act = e_bindings_acpi_find(ctxt, ev, &binding); - if (act) + if ((act) && (binding)) { if (act->func.go_acpi) act->func.go_acpi(obj, binding->params, ev);