about summary refs log tree commit diff
path: root/string/test-strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/test-strstr.c')
-rw-r--r--string/test-strstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string/test-strstr.c b/string/test-strstr.c
index 031aff5534..df6dbc251e 100644
--- a/string/test-strstr.c
+++ b/string/test-strstr.c
@@ -66,7 +66,8 @@ check_result (impl_t *impl, const char *s1, const char *s2,
   if (result != exp_result)
     {
       error (0, 0, "Wrong result in function %s %s %s", impl->name,
-	     result, exp_result);
+	     (result == NULL) ? "(null)" : result,
+	     (exp_result == NULL) ? "(null)" : exp_result);
       ret = 1;
       return -1;
     }