diff options
author | Ariadna Vigo <arivigodr@gmail.com> | 2020-08-16 16:55:35 +0200 |
---|---|---|
committer | Ariadna Vigo <arivigodr@gmail.com> | 2020-08-16 16:55:35 +0200 |
commit | 3ed9515985783fde2bc4dc6555af1cbee02b21bc (patch) | |
tree | b01af6f4032ad3e5bf7db934d849bfff93217266 /cras.c | |
parent | 0a13286034ccb0c2c24fe800ab768fe985b29269 (diff) |
Fixing 'ghost' task files bug
Diffstat (limited to 'cras.c')
-rw-r--r-- | cras.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -218,7 +218,10 @@ output_mode(const char *crasfile, int mode) TaskLst list; task_lst_init(&list); - read_crasfile(&list, crasfile); + if (read_crasfile(&list, crasfile) < 0) { + task_lst_cleanup(&list); + die("Could not find file %s", crasfile); + } if (mode == SHORT_OUTPUT) print_short_output(list); |