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:
Gustavo Sverzut Barbieri 2009-01-12 18:51:56 +00:00
parent 8dbd947272
commit 22df734bfc
1 changed files with 2 additions and 1 deletions

View File

@ -1365,7 +1365,8 @@ _pager_cb_event_border_urgent_change(void *data, int type, void *event)
if (pp && !pager_config->popup_urgent_stick)
pp->timer = ecore_timer_add(pager_config->popup_urgent_speed,
_pager_popup_cb_timeout, pp);
pp->urgent = 1;
if (pp)
pp->urgent = 1;
}
}