Skip to content
Snippets Groups Projects
Commit 703573c7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curlcheck.h: avoid using NULL pointers

parent 7af54ef9
No related branches found
No related tags found
No related merge requests found
......@@ -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++; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment