summaryrefslogtreecommitdiff
path: root/tests/unit/unit1309.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/unit/unit1309.c
parentb8ef4a845be8cc2b82f3fbfee23f88b376655c0e (diff)
downloadcurl-bagder/NULL-checks.tar.gz
checksrc: detect more kinds of NULL comparisons we avoidbagder/NULL-checks
Co-authored-by: Jay Satiro Closes #8180
Diffstat (limited to 'tests/unit/unit1309.c')
-rw-r--r--tests/unit/unit1309.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/unit1309.c b/tests/unit/unit1309.c
index 91eb04090..6d6a3274f 100644
--- a/tests/unit/unit1309.c
+++ b/tests/unit/unit1309.c
@@ -129,7 +129,7 @@ UNITTEST_START
printf("Removing nodes not larger than %d\n", i);
tv_now.tv_usec = i;
root = Curl_splaygetbest(tv_now, root, &removed);
- while(removed != NULL) {
+ while(removed) {
printf("removed payload %zu[%zu]\n",
(*(size_t *)removed->payload) / 10,
(*(size_t *)removed->payload) % 10);