curlcheck.h: avoid using NULL pointers

This commit is contained in:
Daniel Stenberg 2011-01-04 16:41:42 +01:00
parent 7af54ef9a5
commit 703573c72b
1 changed files with 1 additions and 1 deletions

View File

@ -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++; \