diff options
author | Ariadna Vigo <arivigodr@gmail.com> | 2020-12-18 21:58:06 +0100 |
---|---|---|
committer | Ariadna Vigo <arivigodr@gmail.com> | 2020-12-18 22:09:00 +0100 |
commit | 2fb9a4aab97f2f3b7b2e64f278610ec8bf7112e5 (patch) | |
tree | 9f3d85cfd3b5a895bd35ddd1381fb0709b0c52ab /tasklst.c | |
parent | 30fd7b062a7a8c9eb633a83cdef5dfe8e423df15 (diff) |
Fixed how read_crasfile() works
Diffstat (limited to 'tasklst.c')
-rw-r--r-- | tasklst.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |