From 703573c72b134d5389715882ac2057dfbab1d1b7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Jan 2011 16:41:42 +0100 Subject: curlcheck.h: avoid using NULL pointers --- tests/unit/curlcheck.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; \ -- cgit v1.2.3