diff options
Diffstat (limited to 'src/ui-day.c')
-rw-r--r-- | src/ui-day.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui-day.c b/src/ui-day.c index c90edc1..fa106c8 100644 --- a/src/ui-day.c +++ b/src/ui-day.c @@ -364,7 +364,10 @@ static void update_rept(struct rpt **rpt, const long start) for (;;) { mem_free(timstr); - timstr = date_sec2date_str((*rpt)->until, DATEFMT(conf.input_datefmt)); + if ((*rpt)->until) + timstr = date_sec2date_str((*rpt)->until, DATEFMT(conf.input_datefmt)); + else + timstr = mem_strdup(""); status_mesg(msg_until_1, ""); if (updatestring(win[STA].p, &timstr, 0, 1) == GETSTRING_ESC) goto cleanup; |