Avoid test failures on AIX and OSF/1.
[gnulib.git] / tests / uninorm / test-u16-nfkc.c
index df64804..4ac8f7e 100644 (file)
@@ -88,7 +88,7 @@ check (const uint16_t *input, size_t input_length,
     result = u16_normalize (UNINORM_NFKC, input, input_length, preallocated, &length);
     if (!(result != NULL))
       return 8;
-    if (!(result == preallocated))
+    if (!(preallocated == NULL || result == preallocated))
       return 9;
     if (!(length == expected_length))
       return 10;