Avoid test failures on AIX and OSF/1.
[gnulib.git] / tests / uninorm / test-u32-nfkd.c
index 408c593..d3de7f7 100644 (file)
@@ -88,7 +88,7 @@ check (const uint32_t *input, size_t input_length,
     result = u32_normalize (UNINORM_NFKD, 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;