[EGIT] [core/enlightenment] master 01/01: wizard: Prevent crash

2015-07-03 Thread Derek Foreman
discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8e91f32978bf2ccf5d15a6952eb5ae2a6e932509

commit 8e91f32978bf2ccf5d15a6952eb5ae2a6e932509
Author: Derek Foreman der...@osg.samsung.com
Date:   Fri Jul 3 11:55:40 2015 -0400

wizard: Prevent crash

Summary: If we get here when curpage is NULL, we'll crash later, so we 
should test for it.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2793
---
 src/modules/wizard/e_wizard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/wizard/e_wizard.c b/src/modules/wizard/e_wizard.c
index 0a9c052..9a9d072 100644
--- a/src/modules/wizard/e_wizard.c
+++ b/src/modules/wizard/e_wizard.c
@@ -406,7 +406,7 @@ static Eina_Bool
 _e_wizard_cb_icons_update(void *data EINA_UNUSED, int ev_type EINA_UNUSED, 
void *ev EINA_UNUSED)
 {
got_icons = EINA_TRUE;
-   if (_e_wizard_check_xdg())
+   if (curpage  _e_wizard_check_xdg())
  _e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
 }

-- 




[EGIT] [core/enlightenment] master 01/01: wizard: Prevent crash

2015-07-02 Thread Derek Foreman
discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fd9780f7162a087b1eaa895284100eba534f90ac

commit fd9780f7162a087b1eaa895284100eba534f90ac
Author: Derek Foreman der...@osg.samsung.com
Date:   Thu Jul 2 18:11:27 2015 -0400

wizard: Prevent crash

Summary: If we get here when curpage is NULL, we'll crash later, so we 
should test for it.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2789
---
 src/modules/wizard/e_wizard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/wizard/e_wizard.c b/src/modules/wizard/e_wizard.c
index b817da3..0a9c052 100644
--- a/src/modules/wizard/e_wizard.c
+++ b/src/modules/wizard/e_wizard.c
@@ -397,7 +397,7 @@ _e_wizard_cb_desktops_update(void *data EINA_UNUSED, int 
ev_type EINA_UNUSED, vo
if ((e)  (e-error))
  xdg_error = EINA_TRUE;
got_desktops = EINA_TRUE;
-   if (_e_wizard_check_xdg())
+   if (curpage  _e_wizard_check_xdg())
  _e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
 }

--