diff options
Diffstat (limited to 'string/test-strcasestr.c')
-rw-r--r-- | string/test-strcasestr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/string/test-strcasestr.c b/string/test-strcasestr.c index 0a16f85dcd..7649cc6e1d 100644 --- a/string/test-strcasestr.c +++ b/string/test-strcasestr.c @@ -67,7 +67,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; } |