aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/curlcheck.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/curlcheck.h b/tests/unit/curlcheck.h
index 360afcac6..88ee80afa 100644
--- a/tests/unit/curlcheck.h
+++ b/tests/unit/curlcheck.h
@@ -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++; \