mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
curlcheck.h: avoid using NULL pointers
This commit is contained in:
parent
7af54ef9a5
commit
703573c72b
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define verify_memory(dynamic, check, len) \
|
#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", \
|
fprintf(stderr, "%s:%d The dynamic string didn't match '%s'\n", \
|
||||||
__FILE__, __LINE__, check); \
|
__FILE__, __LINE__, check); \
|
||||||
unitfail++; \
|
unitfail++; \
|
||||||
|
Loading…
Reference in New Issue
Block a user