Merge pull request #7091 from paul-elliott-arm/remove_gcc_warning

Fix warning with GCC 12
This commit is contained in:
Gilles Peskine 2023-02-21 23:14:29 +01:00 committed by GitHub
commit 88f8eb5844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@
/* BEGIN_CASE */
void mbedtls_ct_memcmp_null()
{
uint32_t x;
uint32_t x = 0;
TEST_ASSERT(mbedtls_ct_memcmp(&x, NULL, 0) == 0);
TEST_ASSERT(mbedtls_ct_memcmp(NULL, &x, 0) == 0);
TEST_ASSERT(mbedtls_ct_memcmp(NULL, NULL, 0) == 0);