Merge branch 'upstream'
[gnulib.git] / tests / uninorm / test-u32-nfc.c
index 3aafb96..0d8311c 100644 (file)
@@ -88,7 +88,7 @@ check (const uint32_t *input, size_t input_length,
     result = u32_normalize (UNINORM_NFC, 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;