summaryrefslogtreecommitdiffstats
path: root/tasklst.c
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-12-18 21:58:06 +0100
committerAriadna Vigo <arivigodr@gmail.com>2020-12-18 22:09:00 +0100
commit2fb9a4aab97f2f3b7b2e64f278610ec8bf7112e5 (patch)
tree9f3d85cfd3b5a895bd35ddd1381fb0709b0c52ab /tasklst.c
parent30fd7b062a7a8c9eb633a83cdef5dfe8e423df15 (diff)
Fixed how read_crasfile() works
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;