summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cras.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cras.c b/cras.c
index 5ecbf48..d58fded 100644
--- a/cras.c
+++ b/cras.c
@@ -136,9 +136,9 @@ read_crasfile(TaskLst *list, const char *crasfile)
die("Parsing error: task file corrupted.");
}
- if (task_lst_expired(*list) > 0) {
+ if (task_lst_expired(*list)) {
task_lst_cleanup(list);
- die("Due date passed.");
+ die("Due date passed.");
}
}