diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-31 12:18:00 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-07-31 12:18:00 +0900 |
commit | 968e1dfb3728a9d630fd5596484f1973ae997ca1 (patch) | |
tree | 513d83d5cf2cca9bb11caa9611765b5f3a8832b0 /src/lib/elocation/elocation.c | |
parent | d371ece4a9024e641c8e5563f417892db5bf63a8 (diff) |
elocation - fix return of status, address, position to actually ret data
the data was never returned! fix fix fix.
found by PVS studio
@fix
Diffstat (limited to '')
-rw-r--r-- | src/lib/elocation/elocation.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c index 79cd1255f5..dc00a00aa1 100644 --- a/src/lib/elocation/elocation.c +++ b/src/lib/elocation/elocation.c | |||
@@ -1119,7 +1119,7 @@ elocation_address_get(Elocation_Address *address_shadow) | |||
1119 | if (!address) return EINA_FALSE; | 1119 | if (!address) return EINA_FALSE; |
1120 | if (address == address_shadow) return EINA_TRUE; | 1120 | if (address == address_shadow) return EINA_TRUE; |
1121 | 1121 | ||
1122 | address_shadow = address; | 1122 | *address_shadow = *address; |
1123 | return EINA_TRUE; | 1123 | return EINA_TRUE; |
1124 | } | 1124 | } |
1125 | 1125 | ||
@@ -1130,7 +1130,7 @@ elocation_position_get(Elocation_Position *position_shadow) | |||
1130 | if (!position) return EINA_FALSE; | 1130 | if (!position) return EINA_FALSE; |
1131 | if (position == position_shadow) return EINA_TRUE; | 1131 | if (position == position_shadow) return EINA_TRUE; |
1132 | 1132 | ||
1133 | position_shadow = position; | 1133 | *position_shadow = *position; |
1134 | return EINA_TRUE; | 1134 | return EINA_TRUE; |
1135 | } | 1135 | } |
1136 | 1136 | ||
@@ -1141,7 +1141,7 @@ elocation_status_get(int *status_shadow) | |||
1141 | if (status < 0) return EINA_FALSE; | 1141 | if (status < 0) return EINA_FALSE; |
1142 | if (&status == status_shadow) return EINA_TRUE; | 1142 | if (&status == status_shadow) return EINA_TRUE; |
1143 | 1143 | ||
1144 | status_shadow = &status; | 1144 | *status_shadow = status; |
1145 | return EINA_TRUE; | 1145 | return EINA_TRUE; |
1146 | } | 1146 | } |
1147 | 1147 | ||