diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-12-25 21:41:14 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-12-26 12:04:25 +0100 |
commit | ecbd1fa78dd5dd9a917424264fde259934ae4b59 (patch) | |
tree | 1d9ebeab1f083a8794aa646987561dcc438d70c5 /tests/libtest/lib537.c | |
parent | b8ef4a845be8cc2b82f3fbfee23f88b376655c0e (diff) | |
download | curl-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.c | 2 |
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; |