aboutsummaryrefslogtreecommitdiff
path: root/support/support_test_compare_blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/support_test_compare_blob.c')
-rw-r--r--support/support_test_compare_blob.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/support_test_compare_blob.c b/support/support_test_compare_blob.c
index 5bcb03418c..37f012257d 100644
--- a/support/support_test_compare_blob.c
+++ b/support/support_test_compare_blob.c
@@ -33,7 +33,9 @@ static void
report_blob (const char *what, const unsigned char *blob,
unsigned long int length, const char *expr)
{
- if (length > 0)
+ if (blob == NULL && length > 0)
+ printf (" %s (evaluated from %s): NULL\n", what, expr);
+ else if (length > 0)
{
printf (" %s (evaluated from %s):\n", what, expr);
char *quoted = support_quote_blob (blob, length);