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 /lib/easy.c | |
parent | b8ef4a845be8cc2b82f3fbfee23f88b376655c0e (diff) | |
download | curl-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 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/easy.c b/lib/easy.c index 349802a67..20293a710 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -822,7 +822,7 @@ static CURLcode dupset(struct Curl_easy *dst, struct Curl_easy *src) struct Curl_easy *curl_easy_duphandle(struct Curl_easy *data) { struct Curl_easy *outcurl = calloc(1, sizeof(struct Curl_easy)); - if(NULL == outcurl) + if(!outcurl) goto fail; /* |