summaryrefslogtreecommitdiffstats
path: root/tasklst.c
diff options
context:
space:
mode:
Diffstat (limited to 'tasklst.c')
-rw-r--r--tasklst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tasklst.c b/tasklst.c
index 83ffabf..a7b0a09 100644
--- a/tasklst.c
+++ b/tasklst.c
@@ -172,6 +172,8 @@ task_lst_read_from_file(TaskLst *list, FILE *fp)
char *ptr, *endptr;
char linebuf[TASK_LST_DESC_MAX_SIZE];
+ task_lst_init(list);
+
if (fscanf(fp, "%" SCNd64 "\n", &list->expiry) <= 0)
return -1;