summaryrefslogtreecommitdiff
path: root/tests/libtest/lib537.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-12-25 21:41:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-12-26 12:04:25 +0100
commitecbd1fa78dd5dd9a917424264fde259934ae4b59 (patch)
tree1d9ebeab1f083a8794aa646987561dcc438d70c5 /tests/libtest/lib537.c
parentb8ef4a845be8cc2b82f3fbfee23f88b376655c0e (diff)
downloadcurl-ecbd1fa78dd5dd9a917424264fde259934ae4b59.tar.gz
checksrc: detect more kinds of NULL comparisons we avoidbagder/NULL-checks
Co-authored-by: Jay Satiro Closes #8180
Diffstat (limited to 'tests/libtest/lib537.c')
-rw-r--r--tests/libtest/lib537.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c
index 730278521..fd852b6b9 100644
--- a/tests/libtest/lib537.c
+++ b/tests/libtest/lib537.c
@@ -92,7 +92,7 @@ static int fopen_works(void)
}
}
for(i = 0; i < 3; i++) {
- if(fpa[i] != NULL)
+ if(fpa[i])
fclose(fpa[i]);
}
return ret;