diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-29 19:51:08 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-07-29 20:38:59 +0200 |
commit | 1a849cfb8e32c88ca795551bdc5c01716d44593f (patch) | |
tree | 3e1d0c116d94913e5a1765a622fd8833e487b6ed /src | |
parent | 1da88589b22ddd4b8525c09fe4519ce1067687cb (diff) | |
download | calcurse-1a849cfb8e32c88ca795551bdc5c01716d44593f.tar.gz calcurse-1a849cfb8e32c88ca795551bdc5c01716d44593f.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notify.c b/src/notify.c index 6fedb71..1b7e924 100644 --- a/src/notify.c +++ b/src/notify.c @@ -510,7 +510,7 @@ notify_check_repeated (struct recur_apoint *i) pthread_mutex_lock (¬ify_app.mutex); if ((real_app_time = recur_item_inday (i->start, &i->exc, i->rpt->type, i->rpt->freq, i->rpt->until, - get_today ()) > current_time)) + get_today ()))) { if (!notify_app.got_app) { |