mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-27 06:41:08 +00:00
Remove redundant check
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
bf9da1dfb1
commit
5f56df44f0
@ -201,7 +201,7 @@ int mbedtls_mpi_core_read_be( mbedtls_mpi_uint *X,
|
||||
|
||||
/* Avoid calling `memcpy` with NULL source or destination argument,
|
||||
* even if buflen is 0. */
|
||||
if( buf != NULL && X != NULL )
|
||||
if( buf != NULL )
|
||||
{
|
||||
Xp = (unsigned char*) X;
|
||||
memcpy( Xp + overhead, buf, buflen );
|
||||
|
Loading…
x
Reference in New Issue
Block a user