fix magic check when timer doesn't exist

SVN revision: 71843
This commit is contained in:
Mike Blumenkrantz 2012-06-08 10:25:17 +00:00
parent 575bb23dfb
commit 98b7a46e8b
1 changed files with 2 additions and 1 deletions

View File

@ -479,7 +479,8 @@ _update_today_timer(void *data __UNUSED__)
today.tm_hour = 0;
t_tomorrow = mktime(&today) + 24 * 60 * 60;
ecore_timer_interval_set(update_today, t_tomorrow - t);
if (update_today) ecore_timer_interval_set(update_today, t_tomorrow - t);
else update_today = ecore_timer_add(t_tomorrow - t, _update_today_timer, NULL);
return EINA_TRUE;
}