tidy-up: drop redundant != NULL syntax

Where missed by checksrc.

Closes #21932
This commit is contained in:
Viktor Szakats 2026-06-09 13:38:17 +02:00
parent d8c97b021b
commit 59213abfb2
No known key found for this signature in database
32 changed files with 58 additions and 59 deletions

View file

@ -269,7 +269,7 @@ char *curl_dbg_strdup(const char *str, int line, const char *source)
char *mem;
size_t len;
DEBUGASSERT(str != NULL);
DEBUGASSERT(str);
if(countcheck("strdup", line, source))
return NULL;
@ -294,7 +294,7 @@ wchar_t *curl_dbg_wcsdup(const wchar_t *str, int line, const char *source)
wchar_t *mem;
size_t wsiz, bsiz;
DEBUGASSERT(str != NULL);
DEBUGASSERT(str);
if(countcheck("wcsdup", line, source))
return NULL;
@ -510,7 +510,7 @@ int curl_dbg_fclose(FILE *file, int line, const char *source)
{
int res;
DEBUGASSERT(file != NULL);
DEBUGASSERT(file);
if(source)
curl_dbg_log("FILE %s:%d fclose(%p)\n", source, line, (void *)file);