Avoid test failures on AIX and OSF/1.
[pspp] / tests / uninorm / test-u8-nfkc.c
index 1d9f0e1a98a8e62cb83951785d50191bec348f19..0ea463630dea7b413c6bb55dcfefc09e345e041a 100644 (file)
@@ -88,7 +88,7 @@ check (const uint8_t *input, size_t input_length,
     result = u8_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;