aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-01-04 16:41:42 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-01-04 16:41:42 +0100
commit703573c72b134d5389715882ac2057dfbab1d1b7 (patch)
tree5602fd7afbfe0730be8c08e0968fd1e0c088fb20
parent7af54ef9a545d277f342f9bba83597d4fe3afa3d (diff)
curlcheck.h: avoid using NULL pointers
-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++; \