mirror of
https://github.com/curl/curl.git
synced 2026-08-02 01:30:35 +03:00
curlcheck.h: avoid using NULL pointers
This commit is contained in:
parent
7af54ef9a5
commit
703573c72b
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
|||
}
|
||||
|
||||
#define verify_memory(dynamic, check, len) \
|
||||
if(memcmp(dynamic, check, len)) { \
|
||||
if(dynamic && memcmp(dynamic, check, len)) { \
|
||||
fprintf(stderr, "%s:%d The dynamic string didn't match '%s'\n", \
|
||||
__FILE__, __LINE__, check); \
|
||||
unitfail++; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue