summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-01-04 17:20:05 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-01-05 13:40:31 -0600
commitbc000f3ad29d219c06cb0208ae3485ad138cc6d2 (patch)
treea0a0551a4071f6ce5761a1efd305c12845734c38
parentdf72ddf43cab9c8c402787735306ce03556b2819 (diff)
downloadefl-bc000f3ad29d219c06cb0208ae3485ad138cc6d2.tar.gz
ecore_wl2: Fix accidental re-use of tmp var
Oops, same tmp var for a nested inlist traverse. That won't end well.
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c
index 16a3fb3c60..e25aa75694 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -283,7 +283,7 @@ _recovery_timer(Ecore_Wl2_Display *ewd)
static void
_recovery_timer_add(Ecore_Wl2_Display *ewd)
{
- Eina_Inlist *tmp;
+ Eina_Inlist *tmp, *tmp2;
Ecore_Wl2_Output *output;
Ecore_Wl2_Input *input;
Ecore_Wl2_Window *window;
@@ -320,7 +320,7 @@ _recovery_timer_add(Ecore_Wl2_Display *ewd)
{
Ecore_Wl2_Subsurface *subsurf;
- EINA_INLIST_FOREACH_SAFE(window->subsurfs, tmp, subsurf)
+ EINA_INLIST_FOREACH_SAFE(window->subsurfs, tmp2, subsurf)
_ecore_wl2_subsurf_unmap(subsurf);
_ecore_wl_window_semi_free(window);
window->configure_serial = 0;