diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-25 10:29:46 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-25 10:29:46 +0100 |
commit | 47d58cbea523862d6b39429118c102c5d81283e7 (patch) | |
tree | 7e075eacb7293ea18deec2f902faf9ba76aa18ec | |
parent | 4d9f37183885f4524d7c08df7277eb403699a253 (diff) |
Cleanup: Simplify by removing comparisoncleanup
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | cras.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,7 +147,7 @@ write_crasfile(const char *crasfile, TaskLst list) { FILE *fp; - if ((fp = fopen(crasfile, "w")) == NULL) { + if (!(fp = fopen(crasfile, "w"))) { task_lst_cleanup(&list); die("Could not write to %s: %s", crasfile, strerror(errno)); } |