summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-25 10:29:46 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-25 10:29:46 +0100
commit47d58cbea523862d6b39429118c102c5d81283e7 (patch)
tree7e075eacb7293ea18deec2f902faf9ba76aa18ec
parent4d9f37183885f4524d7c08df7277eb403699a253 (diff)
Cleanup: Simplify by removing comparisoncleanup
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--cras.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cras.c b/cras.c
index d58fded..9ce8874 100644
--- a/cras.c
+++ b/cras.c
@@ -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));
}