Fix notify_check_repeated()
Remove the "current_time" check from the first if condition. As "greater than" relations (">") have higher precedence than assignments ("=") in C, this caused "real_app_time" to always be one or zero which definitely isn't what we want here. Reading further down, it turns out that we don't even need this comparison here, so we should be fine removing it. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
1da88589b2
commit
1a849cfb8e
@ -510,7 +510,7 @@ notify_check_repeated (struct recur_apoint *i)
|
|||||||
pthread_mutex_lock (¬ify_app.mutex);
|
pthread_mutex_lock (¬ify_app.mutex);
|
||||||
if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type,
|
if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type,
|
||||||
i->rpt->freq, i->rpt->until,
|
i->rpt->freq, i->rpt->until,
|
||||||
get_today ()) > current_time))
|
get_today ())))
|
||||||
{
|
{
|
||||||
if (!notify_app.got_app)
|
if (!notify_app.got_app)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user