From 968e1dfb3728a9d630fd5596484f1973ae997ca1 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 31 Jul 2017 12:18:00 +0900 Subject: [PATCH] elocation - fix return of status, address, position to actually ret data the data was never returned! fix fix fix. found by PVS studio @fix --- src/lib/elocation/elocation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c index 79cd125..dc00a00 100644 --- a/src/lib/elocation/elocation.c +++ b/src/lib/elocation/elocation.c @@ -1119,7 +1119,7 @@ elocation_address_get(Elocation_Address *address_shadow) if (!address) return EINA_FALSE; if (address == address_shadow) return EINA_TRUE; - address_shadow = address; + *address_shadow = *address; return EINA_TRUE; } @@ -1130,7 +1130,7 @@ elocation_position_get(Elocation_Position *position_shadow) if (!position) return EINA_FALSE; if (position == position_shadow) return EINA_TRUE; - position_shadow = position; + *position_shadow = *position; return EINA_TRUE; } @@ -1141,7 +1141,7 @@ elocation_status_get(int *status_shadow) if (status < 0) return EINA_FALSE; if (&status == status_shadow) return EINA_TRUE; - status_shadow = &status; + *status_shadow = status; return EINA_TRUE; } -- 2.7.4