mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:43:31 +03:00
checksrc: detect more kinds of NULL comparisons we avoid
Co-authored-by: Jay Satiro Closes #8180
This commit is contained in:
parent
acaa79f961
commit
21248e052d
36 changed files with 87 additions and 87 deletions
|
|
@ -858,7 +858,7 @@ static int dprintf_formatf(
|
|||
{
|
||||
void *ptr;
|
||||
ptr = (void *) p->data.ptr;
|
||||
if(ptr != NULL) {
|
||||
if(ptr) {
|
||||
/* If the pointer is not NULL, write it as a %#x spec. */
|
||||
base = 16;
|
||||
digits = (p->flags & FLAGS_UPPER)? upper_digits : lower_digits;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue