mirror of
https://github.com/curl/curl.git
synced 2026-07-31 08:58:03 +03:00
tidy-up: drop redundant != NULL syntax
Where missed by checksrc. Closes #21932
This commit is contained in:
parent
d8c97b021b
commit
59213abfb2
32 changed files with 58 additions and 59 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue