summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-07-03 11:55:40 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-07-03 11:56:05 -0400
commit01ef4980d721aba0e918bc613bf7d00c0b0ace76 (patch)
tree82aa95dddb185db230fab3774093d47c0b6b1f86
parentc9958e8e039c9b1b5e815a26d120867317a26a5c (diff)
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
-rw-r--r--src/modules/wizard/e_wizard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/wizard/e_wizard.c b/src/modules/wizard/e_wizard.c
index 9e93581e3..b56b52a5b 100644
--- a/src/modules/wizard/e_wizard.c
+++ b/src/modules/wizard/e_wizard.c
@@ -410,7 +410,7 @@ static Eina_Bool
410_e_wizard_cb_icons_update(void *data __UNUSED__, int ev_type __UNUSED__, void *ev __UNUSED__) 410_e_wizard_cb_icons_update(void *data __UNUSED__, int ev_type __UNUSED__, void *ev __UNUSED__)
411{ 411{
412 got_icons = EINA_TRUE; 412 got_icons = EINA_TRUE;
413 if (_e_wizard_check_xdg()) 413 if (curpage && _e_wizard_check_xdg())
414 _e_wizard_next_xdg(); 414 _e_wizard_next_xdg();
415 return ECORE_CALLBACK_PASS_ON; 415 return ECORE_CALLBACK_PASS_ON;
416} 416}