forked from enlightenment/enlightenment
fix possible segv with pager, caught by clang.
If no pager exists on given zone and popup is urgent, it would segfault. SVN revision: 38558
This commit is contained in:
parent
8dbd947272
commit
22df734bfc
|
@ -1365,7 +1365,8 @@ _pager_cb_event_border_urgent_change(void *data, int type, void *event)
|
||||||
if (pp && !pager_config->popup_urgent_stick)
|
if (pp && !pager_config->popup_urgent_stick)
|
||||||
pp->timer = ecore_timer_add(pager_config->popup_urgent_speed,
|
pp->timer = ecore_timer_add(pager_config->popup_urgent_speed,
|
||||||
_pager_popup_cb_timeout, pp);
|
_pager_popup_cb_timeout, pp);
|
||||||
pp->urgent = 1;
|
if (pp)
|
||||||
|
pp->urgent = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue