aboutsummaryrefslogtreecommitdiffstats
path: root/src/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/args.c')
-rw-r--r--src/args.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/args.c b/src/args.c
index 76bae34..13ab738 100644
--- a/src/args.c
+++ b/src/args.c
@@ -307,7 +307,9 @@ app_arg(int add_line, struct date *day, long date, const char *fmt_apt,
if (date == 0)
date = get_sec_date(*day);
- int n = day_store_items(date, NULL, NULL, regex);
+ day_store_items(date, regex);
+
+ int n = day_item_count();
if (n > 0) {
if (add_line)